send method

void send(
  1. RelayConnectionKey key,
  2. List message
)

Sends message, a JSON array such as ["NEG-CLOSE", subscriptionId], on the connection behind key once its socket is ready. The message is dropped and logged when there is no such connection, or when its socket goes away first.

Implementation

void send(RelayConnectionKey key, List<dynamic> message) =>
    relayManagerParts(this).connections.send(key, message);