Adds context data to the web socket.
Closes the web socket.
Gets the context data of the web socket.
Reads the current message as a generic data-type.
Reads the current message as a buffer.
Waits for the next message and reads it as a buffer.
Waits for the next message and reads it as a generic data-type.
Reads the current message as a text string.
Waits for the next message and reads it as a text string.
Sends a generic data value to the web socket.
Sends a buffer to the web socket.
Sends a text string to the web socket.
Waits for data to be received.
Wrapper around a web socket.