init static method
Setup app key and options
Implementation
static Future init(
String appKey,
PusherOptions options, {
bool enableLogging = false,
}) async {
assert(appKey != null);
assert(options != null);
_eventChannel.receiveBroadcastStream().listen(_handleEvent);
final initArgs = jsonEncode(InitArgs(
appKey,
options,
isLoggingEnabled: enableLogging,
).toJson());
await _channel.invokeMethod('init', initArgs);
}