ping method

  1. @override
Future<void> ping({
  1. required String topic,
})
override

Implementation

@override
Future<void> ping({
  required String topic,
}) async {
  _checkInitialized();
  await _isValidPing(topic);

  if (sessions.has(topic)) {
    bool _ = await core.pairing.sendRequest(
      topic,
      MethodConstants.WC_SESSION_PING,
      {},
    );
  } else if (core.pairing.getStore().has(topic)) {
    await core.pairing.ping(topic: topic);
  }
}