closeFor method

Future<void> closeFor(
  1. RpcChannelCloseReason reason
)

Closes the channel because the peer broke a rule, telling the peer why where the channel underneath can; see IRpcChannel.closeFor.

The default closes the ordinary way. RpcFrameMultiplexedChannel forwards it to the byte channel it wraps.

Implementation

Future<void> closeFor(RpcChannelCloseReason reason) => close();