GameRoom.onConnect() method

listen to connect events, this is fired when the client is connected to the server, but not necessarily synced

Signature:

onConnect(listener: () => void): () => void;

Parameters

ParameterTypeDescription
listener() => void

Returns:

() => void