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 think this is the best way to have a "uniform" way of exiting out of calls like receive. Additionally, it works very well functions like bracket from Control.Exception.
The alternative would be to have receive return the close message, but that:
Is a breaking change (which is hard to argue for)
Breaks the idea that the library takes care of "control messages" (open, close, ping, continue...)
For sendClose:
If I am closing the connection properly, why should an exception ever be raised? Shouldn't exceptions only be raised for exceptional circumstances?
The text was updated successfully, but these errors were encountered: