send method
Implementation
void send(Uint8List data) {
if (!isConnected) {
SdkLogger.i('Cannot send: not connected');
return;
}
final shouldBatch =
_negotiatedProtocol == NegotiatedWsProtocol.v3 &&
config.outboundBatching == OutboundBatchingPolicy.opportunistic;
if (!shouldBatch) {
_channel!.sink.add(data);
return;
}
_outboundQueue.add(Uint8List.fromList(data));
_scheduleOutboundFlush();
}