connect method

Future<void> connect()

Connects to a server via controller.

Implementation

Future<void> connect() {
  if (_isDisposed) {
    throw const PusherChannelsClientDisposedException();
  }
  return controller.connectSafely();
}