close method

void close()

Closes the underlying websocket.

Implementation

void close() {
  _webSocket?.close(WebSocketStatus.goingAway);
}