Constructors

Properties

Methods

Constructors

Properties

id: string
ip: string
name: string

Methods

  • Disconnect the user.

    Parameters

    • message: string

      The message to send to the user.

    • Optionalcode: number

      If provided the disconnection is treated as an error, and this is the error code.

    Returns Promise<void>

  • Send a message to the user from the server.

    Parameters

    • message: Record<string, unknown>

      The message to send.

    Returns Promise<void>