Skip to main content

removePlayerFromAllSubscriptions()

function removePlayerFromAllSubscriptions(playerId: number): void;

Defined in: src/lib/observable/registry.ts:307

Remove a player from all observable subscriptions. Call this when a player disconnects.

Parameters

ParameterTypeDescription
playerIdnumberThe player ID

Returns

void