Skip to main content

Client

Client

Events

persistenceMessageReceived

event PersistenceMessageReceived persistenceMessageReceived

rpcMessageReceived

event RPCMessageReceived rpcMessageReceived

audioOutputStreamCreated

event AudioOutputStreamCreated audioOutputStreamCreated

audioOutputStreamClosed

event AudioOutputStreamClosed audioOutputStreamClosed

Methods

Dispose

void Dispose()

GetNetworkStatistics

NetworkInfo GetNetworkStatistics()

StartConnection

string StartConnection()

Connect

void Connect(string serverAnswer)

Disconnect

void Disconnect()

ReceiveIncomingMessages

void ReceiveIncomingMessages()

BumpAutoDisconnectTime

void BumpAutoDisconnectTime()

Type

ClientType Type()

State

ClientState State()

ClientID

int ClientID()

RoomTime

double RoomTime()

Ping

float Ping()

CreateAudioInputStream

AudioInputStream CreateAudioInputStream(bool voice, int sampleRate, int channels)

ReceiveAudioEventMessages

void ReceiveAudioEventMessages()

GetAudioOutputStream

AudioOutputStream GetAudioOutputStream(int clientID, int streamID)

SendPersistenceMessage

bool SendPersistenceMessage(byte[] data, int dataLength, bool reliable)

SendRPCMessage

bool SendRPCMessage(byte[] data, int dataLength, bool reliable)

SetProfilingEnabled

bool SetProfilingEnabled(bool enabled)

TryGetProfilingSample

bool TryGetProfilingSample(ProfilingSample& profilingSample)