send abstract method

Future<void> send(
  1. RpcTransportMessage message
)

Send a message to the remote side.

A send on a CLOSED channel returns normally and delivers nothing. Both shipped implementations do this -- if (_closed) return -- so it is the convention rather than one channel's quirk, and it means the future completing is not evidence the peer received anything. Measured on the direct channel after the peer closed: the send returned normally / the peer received [] / our isClosed true.

Callers that need to know go through RpcChannelTransport, which throws RpcClosedException from its own sendMessage instead. A channel used directly has only isClosed to check.

Implementation

Future<void> send(RpcTransportMessage message);