Skip to content

Instantly share code, notes, and snippets.

@yakovenkodenis
Created November 20, 2022 17:46
Show Gist options
  • Save yakovenkodenis/62e033a441b9dbbe2d3645e22003f458 to your computer and use it in GitHub Desktop.
Save yakovenkodenis/62e033a441b9dbbe2d3645e22003f458 to your computer and use it in GitHub Desktop.
Opcode value Meaning
0x00 Denotes that this frame continues the payload from the previous frame
0x01 Denotes a text frame
0x02 Denotes a binary frame
0x08 Denotes that the client wants to close the connection
0x09, 0x0a ping and pong frames - a heartbeat mechanism for ensuring the connection is still alive
0x03 - 0x07, 0x0b - 0x0f Reserved for future use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment