-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Labels
Description
See #103
So the problem here is not really that the close handshake is useful but that a lot of libraries expect to be able to reply to a close frame with a echoed close frame and if the connection is closed before they can reply, they error out and it is confusing.
So I'm going to revive my effort in #104 to read the connection automatically in Close() and discard all messages until a Close frame is received for 5s.
This should also go into the README as a nice behavioural advantage over gorilla/websocket and gobwas/ws.