How to close a WebSocket after calling .split()
?
#390
Unanswered
TristanCacqueray
asked this question in
Q&A
Replies: 1 comment
-
Does dropping the split parts should close the WS connection?
gloo/crates/net/src/websocket/futures.rs Lines 328 to 351 in 1b6a4fa |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the Bug
I can't figure how to call
ws.close()
after splitting the stream since that consumes the WebSocket.Is it possible to make such code terminate the connection from an external event (here when associated dom element is removed)?
This fails with
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions