GameRoom.onDisconnect() method

listen to disconnect events, this is fired when the client is disconnected from the server

Signature:

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

Parameters

ParameterTypeDescription
listener() => void

Returns:

() => void