send method

Future<void> send(
  1. String event,
  2. dynamic payload
)

Sends payload to the server under this topic with the given event name.

Implementation

Future<void> send(String event, dynamic payload) {
  if (_disposed) throw StateError('Topic "$topic" has been disposed');
  return _sender(topic, event, payload);
}