GameRoom.onDisconnect() method

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

Signature:

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

Parameters

Parameter

Type

Description

listener

() => void

**Returns:**

() => void