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

Hierarchy

  • SocketManager

Constructors

Properties

sockets: Record<string, WebSocket>

Methods

  • Sends a message to a socket with the specified id. Returns true if the message was sent successfully, and false otherwise.

    Parameters

    Returns boolean

Generated using TypeDoc