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
Apologies for the long silence on this - I've been unable to set aside enough time to look at this library for quite a while. I'm trying to at least catch up with the issues raised right now, while I have some spare time.
I'm looking at how we'd propagate that close code back out to the caller and it's not immediately obvious to me. I think perhaps the appropriate thing to do would be to call disconnect(Reason, Context) from that case clause you linked - this would call your ondisconnect(Reason, State) callback. Does that allow you to do what you need?
It's my understanding that it is currently not possible to get close codes upon disconnect.
The
_Reason
variable holds this close code information, it's being ignored here.These codes would be very useful when consuming 3rd party websockets that define their own event codes in the 3000..4999 range
The text was updated successfully, but these errors were encountered: