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
Currently there's no other way, because there might happen that a frame fails [therefore closing the connection according to the spec] during the sending of the message, even if we exposed the closed property it might fail after the closed check and before the actual sending of the frame.
Hi there, is there any way to check if a
Conn
is valid before sending the message? I'm currently doing as followThe
Conn
struct hasclosed
property but since it is not exposed and have no access function, I have no way to check the connection before sending.The text was updated successfully, but these errors were encountered: