Room
Room
Events
event ConnectionStateChanged connectionStateChanged
event RPCMessageReceived rpcMessageReceived
event RoomEventHandler onWillWrite
event RoomEventHandler onWillRead
event RoomEventHandler onDidWrite
event RoomEventHandler onDidRead
Properties
string name { get; }
int clientID { get; }
double time { get; }
float ping { get; }
ConnectionState connectionState { get; }
The connection state of the room.
bool connecting { get; }
True if the room is connecting to the server.
bool connected { get; }
True if the room is connected to the server.
bool disconnected { get; }
True if the room is disconnected or in an error state.
double datastoreFrameDuration { get; set; }
bool debugLogging { get; set; }
Component realtime { get; set; }
Datastore datastore { get; }
Methods
void Dispose()
void Connect(string roomName, string appKey, string matcherURL = null, RealtimeModel roomModel = null)
void Connect(string roomName, ConnectOptions connectOptions)
void Disconnect()
void Tick(double deltaTime)
bool SendRPCMessage(byte[] data, bool reliable)
bool SendRPCMessage(byte[] data, int dataLength, bool reliable)
AudioInputStream CreateAudioInputStream(bool voice, int sampleRate, int channels)
AudioOutputStream GetAudioOutputStream(int clientID, int streamID)
NetworkInfo GetNetworkStatistics()