sendFrame method
Sends one frame to the peer.
Does nothing on a transport that is gone.
Implementation
@override
void sendFrame(WebSocketOpcode opcode, Uint8List payload) {
if (_sinkClosed) return;
try {
_channel.sink.add(encodeWebSocketFrame(opcode, payload));
} catch (_) {
// The channel is gone. Its stream reports that.
}
}