connect method

void connect()

Create a new connection.

Implementation

void connect() {
  if (this.broadcaster == EchoBroadcasterType.Pusher) {
    this.connector = new PusherConnector(this.options);
  } else if (this.broadcaster == EchoBroadcasterType.SocketIO) {
    this.connector = new SocketIoConnector(this.options);
  }
}