Skip to content

Add close code and reason support to both outgoing and incoming packets. [Suggestion] #52

Description

@thatrandomperson5

As far as I can see from the documentation and the code, the ws package does not support the close code and reason features for outgoing or incoming close packets. (These are defined in RFC 6455 7.1.5 and 7.1.6 and is fully supported in JavaScript)
It’d be useful for these to be added to the ws package so users don’t have to manually manage a “pre-error” system to send information with errors.

If this can be done with the current ws package, please notify me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions