disconnect method

dynamic disconnect()

Disconnects from the WebSocket server

Implementation

disconnect() {
  webSocket?.close();
  pingTimer?.cancel();
}