isOpen method

bool isOpen()

check if the websocket is open

Implementation

bool isOpen() {
  return webSocketChannel.closeCode == null;
}