GameRoom.onSync() method

listen to sync events, this is fired when the client is connected to the server and the initial state is synced

Signature:

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

Parameters

ParameterTypeDescription
listener() => void

Returns:

() => void