trySendBytes abstract method

bool trySendBytes(
  1. Uint8List b
)

Sends binary data to the peer, unless connection is already closed (either through close or by the peer). Returns false if connection is known to be closed, otherwise true.

Data sent through sendBytes will be silently discarded if the peer is disconnected but the disconnect has not yet been detected.

Implementation

bool trySendBytes(final Uint8List b);