send method
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);
}