sendPayload method

void sendPayload(
  1. String event,
  2. Map<String, dynamic> payload,
  3. String channel,
  4. String type,
)

Implementation

void sendPayload(String event, Map<String, dynamic> payload, String channel, String type) {
  final sendChannel = _getChannelWithKey(type);
  sendChannel?.push(event: event, payload: payload)?.receive("ok", (response) {
    Log().info("sendPayload response = $response event = $event, payload = $payload");
  });
}