Telegraph icon indicating copy to clipboard operation
Telegraph copied to clipboard

How to deal with sticky or half a pack when send with data

Open donly opened this issue 4 years ago • 0 comments

Hi, While sending json data with client.send(data: json), sometimes will cause websocket client disconnection:

[connection] nw_socket_handle_socket_event [C1:1] Socket SO_ERROR [54: Connection reset by peer]
[CLIENT] WebSocket disconnected - error: Broken pipe

As you said that The WebSocket implementation in Telegraph is kinda bare bones in https://github.com/Building42/Telegraph/issues/30#issuecomment-365004696.

Any solutions or suggestions to fix sticky package message pls.

donly avatar Sep 08 '21 07:09 donly