Skip to content

Properly implement Close Handshake #109

@nhooyr

Description

@nhooyr

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions