WebSocketMessageType

WebSocketMessageType.TEXT

Text message received

WebSocketMessageType.BINARY

Binary message received

WebSocketMessageType.OPEN

Connected to the server

WebSocketMessageType.CLOSE

Connection was closed for any reason, or broke

WebSocketMessageType.PING

See the standard about ping and pong.

WebSocketMessageType.PONG

Your ping has been answered.

Note that incoming pings are answered automatically.

WebSocketMessageType.FRAGMENT