WebSocketService

Wrapper around a websocket service.

Constructors

this
this(string route, bool strict)

Creates a new web socket service.

Members

Functions

handleWebSocket
void handleWebSocket(vibewebsockets.WebSocket rawSocket)

Handling the raw web socket.

onClose
void onClose(WebSocket socket)

Function called when a web socket is closed.

onConnect
void onConnect(WebSocket socket)

Function called when a web socket connects.

onMessage
void onMessage(WebSocket socket)

Function called when a web socket has received a message.

Properties

route
string route [@property getter]

Gets the route of the service.

Meta