send method

void send(
  1. String? id,
  2. String? message
)

Implementation

void send(String? id, String? message) {
  IOWebSocketChannel? client = _clientMap[id!];

  if (client == null) return;

  client.sink.add(message);
}