send method

  1. @override
Future<void> send(
  1. List<int> bytes
)
override

Send the supplied bytes verbatim.

Implementation

@override
Future<void> send(List<int> bytes) async {
  final ws = _ws;
  if (ws == null || _closed) {
    throw StateError('WebSocketOpcUaByteTransport not open');
  }
  // `add` on a binary-typed payload triggers a single binary
  // WebSocket frame.
  ws.add(bytes);
}