Websocket constructor

Websocket(
  1. String name, {
  2. ResourcesClient? client,
  3. WebsocketClient? websocketClient,
  4. 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;
  }
}