send method

Future<void> send(
  1. String type,
  2. Uint8List data, {
  3. int? id,
})

Implementation

Future<void> send(String type, Uint8List data, {int? id}) async {
  if (_room._entered && !_room.isConnected && !_room._allowDisconnectedRequests) {
    throw _room._disconnectedError(baseMessage: 'room connection is disconnected');
  }
  await _room._protocolInstance.send(type, data, id: id);
}