disconnect method

Future<void> disconnect()

Disconnects from a server via controller.

Implementation

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