You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see how this is confusing. We have two subtypes of WebSockets. The 'read' function's argument is a WebSocket of the 'client' type. What that means is ambigious - which side of the connection is a client? Are we reading from our end or from the other end? Enabling more debug output will hopefully set that straight.
We know from the message that WebSockets.jl had WebSocketError 1002 or 1006 (the definition set is shown in the code). Either, the other side did something not according to protocol or the connection was lost. To play nice, our side initiated a separate task which will be trying to close the connection in the proper way during the following TIMEOUT_CLOSEHANDSHAKE seconds.
To get details from @debug statements, the simplest way is from the command line: Users\f> julia -g 2
If you want full clarity, we have an additional log level, @WSLog. See, ´examples/count_with_logger.jl´.
I suppose you have been calling the 'readguarded' function? Use 'read' instead for full debugging sessions - most closing events are normal timeouts from a browser (i.e. from a client) or from a server, and some don't follow the protocol while closing.
I'm trying to debug why all my websockets keep crashing at the same time. I'm subscribed to a feed.
I get the following error:
Debug: WebSocketClosedError("while read(ws|client) Client side closed socket connection - Performed closing handshake.")
I believe this comes from
WebSockets.jl/src/WebSockets.jl
Line 480 in 0e81f48
WebSockets.jl/src/WebSockets.jl
Lines 388 to 394 in 0e81f48
It seems like the issue is on the Julia (client) side rather than on the webserver. Any tips for how I might debug? Thank you!
The text was updated successfully, but these errors were encountered: