WebSocketConnection

All the data that represents a WebSocket connection tracked by the WebSocketHandler.

Members

Functions

close
void close()

Closes this connection, if it's alive, sending a websocket close message.

sendBinaryMessage
void sendBinaryMessage(ubyte[] bytes)

Sends a binary message to the connected client.

sendCloseMessage
void sendCloseMessage(WebSocketCloseStatusCode status, string message)

Sends a close message to the client, indicating that we'll be closing the connection.

sendTextMessage
void sendTextMessage(string text)

Sends a text message to the connected client.

Variables

id
UUID id;

The internal id Handy-Httpd has assigned to this connection.