isSocketConnected method

bool isSocketConnected()

Implementation

bool isSocketConnected() {
  final socket = _socketClient;
  if (socket != null) {
    return socket.isConnected;
  }
  return false;
}