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 create a websocket connection by using "websockets.connect()", but maybe the connection is broken or other things wrong, so I have to close it and then reconnect. I think https://websockets.readthedocs.io/en/stable/api.html#websockets.protocol.WebSocketCommonProtocol.close is what I want. Am I right?
And I noticed one thing which makes me confused, "It’s safe to wrap this coroutine in ensure_future() since errors during connection termination aren’t particularly useful.", Why? I don't understand it.
The text was updated successfully, but these errors were encountered:
And if I close the client by hands but receive pool on the client still have some data to read (but I don't need to handle it and I just want to ignore the data). Is it safe?
I create a websocket connection by using "websockets.connect()", but maybe the connection is broken or other things wrong, so I have to close it and then reconnect. I think https://websockets.readthedocs.io/en/stable/api.html#websockets.protocol.WebSocketCommonProtocol.close is what I want. Am I right?
And I noticed one thing which makes me confused, "It’s safe to wrap this coroutine in ensure_future() since errors during connection termination aren’t particularly useful.", Why? I don't understand it.
The text was updated successfully, but these errors were encountered: