Onplayerjoined

GameRoom.onPlayerJoined() method

listen to player joined events, this is fired whenever a new player joins the game room

Signature:

onPlayerJoined(listener: (data: PlayerWrapper) => void): () => void;

Parameters

Parameter

Type

Description

listener

(data: PlayerWrapper) => void

**Returns:**

() => void