Skip to content
Discussion options

You must be logged in to vote

You should receive https://tweaked.cc/event/websocket_closed.html event when websocket connection closes.
Additionally, https://tweaked.cc/module/http.html#ty:Websocket:receive function returns nil and reason it websocket closed while it was waiting for message, and throws if you attempt to call it on closed websocket.
That should cover both pullEvent and recieve() based loops.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JulianWogersien
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants