on_connected Event
Fired when a WebSocket is successfully opened.
Syntax
class WebSocketServerConnectedEventParams(object): @property def connection_id() -> int: ... # In class WebSocketServer: @property def on_connected() -> Callable[[WebSocketServerConnectedEventParams], None]: ... @on_connected.setter def on_connected(event_hook: Callable[[WebSocketServerConnectedEventParams], None]) -> None: ...
Remarks
The on_connected event is fired when a WebSocket is successfully opened on a connection.
ConnectionId identifies the connection.