reconnect method

void reconnect()

Reconnects to the web socket server.

Implementation

void reconnect() {
  _transport.close(forceClose: true);
  _transport.open();
}