sendMessage method

void sendMessage (OutgoingMessage response)

Sends the given message over the bound channel.

If the channel is not bound, the handles inside the message are closed and the message itself is discarded.

Implementation

void sendMessage(OutgoingMessage response) {
  if (!isBound) {
    response.closeHandles();
    return;
  }
  _reader.channel?.writeEtc(response.data, response.handleDispositions);
}