Websocket constructor
Websocket(
- String name, {
- ResourcesClient? client,
- WebsocketClient? websocketClient,
- WebsocketHandlerClient? websocketHandlerClient,
Implementation
Websocket(String name,
{$p.ResourcesClient? client,
$wp.WebsocketClient? websocketClient,
$wp.WebsocketHandlerClient? websocketHandlerClient})
: super(name, client) {
if (websocketClient == null) {
_websocketClient =
$wp.WebsocketClient(ClientChannelSingleton.instance.clientChannel);
} else {
_websocketClient = websocketClient;
}
if (websocketHandlerClient == null) {
_websocketHandlerClient = $wp.WebsocketHandlerClient(
ClientChannelSingleton.instance.clientChannel);
} else {
_websocketHandlerClient = websocketHandlerClient;
}
}