getInstance static method

WebSocketChannel? getInstance()

Implementation

static WebSocketChannel? getInstance() {
  if (_channel == null) {
    _connectServer();
  }

  return _channel;
}