ping static method
Implementation
static Future<void> ping(
{required Function? onSuccess,
required Function(CometChatException e)? onError}) async {
try {
await channel.invokeMethod('ping', null);
if (onSuccess != null) onSuccess();
} on PlatformException catch (p) {
_errorCallbackHandler(null, p, null, onError);
} catch (e) {
_errorCallbackHandler(null, null, e, onError);
}
}