GameRoom.onPlayerLeft() method

listen to player left events, this is fired whenever a player leaves the game room

Signature:

onPlayerLeft(listener: (data: {
        sessionId: string;
    }) => void): () => void;

Parameters

Parameter

Type

Description

listener

(data: { sessionId: string; }) => void

**Returns:**

() => void