transferHost

Only the current host can call this. The target player must be in the room.

Signature

function transferHost(playerId: string): Promise<void>

Parameters

NameTypeDescription
playerIdstringThe ID of the player to transfer host to.

Returns

Promise<void>

Usage

await transferHost('player123');