connect static method
Connect the client to pusher
Implementation
static Future connect({
void Function(ConnectionStateChange?)? onConnectionStateChange,
void Function(ConnectionError?)? onError,
}) async {
_onConnectionStateChange = onConnectionStateChange;
_onError = onError;
await _channel.invokeMethod('connect');
}