A binary message.
A close message.
A close message.
The close status code.
The reason it was closed.
A WebSocket message.
A WebSocket message.
This is a high level API intended for common simple use cases. It allows handling and sending of full WebSocket messages, as well as close and ping/pong messages. It will buffer fragmented messages up until a limit, and does not allow streaming in fragments.
A ping message.
A ping message.
The application data.
A pong message.
A pong message.
The application data.
A text message.
A text message.
The data of the text message.
An exception that, if thrown by a WebSocket source, will cause the WebSocket to be closed with the given close message.
An exception that, if thrown by a WebSocket source, will cause the WebSocket to be closed with the given close message. This is a convenience that allows the WebSocket to close with a particular close code without having to produce generic Messages.
WebSocket close codes
A binary message.
The data of the binary message.