A class which maps client ids to their corresponding sockets (if any).

gets, sends, and assigns client information

Hierarchy

  • ClientManager

Constructors

Properties

clientId?: string
hostId?: string
socketManager: SocketManager
spectatorIds: Set<string> = ...

Methods

  • assigns the passed id to either host/client

    Parameters

    • id: string

      the cookie id of the request

    Returns void

  • gets the ids of all currently connected clients

    Returns

    • list of ids, if available

    Returns undefined | string[]

Generated using TypeDoc