Called when a client has connected.
Called when a client has connected.
the client channel, can be used to push messages to the client
Called when a client has disconnected.
Called when a client has disconnected.
the disconnected client channel
Called when the client sends a message to the server.
Called when the client sends a message to the server.
the message
the client that sent the message
Opens a WebSocket connection.
Opens a WebSocket connection.
This is the controller for requests to ws://... or wss://... URIs.
The implementation is problematic because a websocket connection appears to be opened even if authentication fails, if only for a very brief moment. I would prefer to return some erroneous HTTP status code when authentication fails but I don't know how to.
a websocket connection using messages of type Message