Class ClientWrapper

Hierarchy

  • ClientWrapper

Primary Controls

General Properties

Internal Data

  • Parameters

    • identifier: string

      UUID generated by the Server.

      Category

      General Properties

    • socket: SocketLike

      The WebSocket used to communicate with the the client

      Category

      Internal Data

    • customData: Record<string, Serializable> = {}

      Object for holding custom data about the client.

      Category

      General Properties

    Returns ClientWrapper

Primary Controls

  • Sends a SocketRequest to the client socket.

    Parameters

    • msg: SocketRequest

      The SocketRequest to send. Will be stringified on the way out.

    Returns void

General Properties

alive: boolean = true

true if actively connected, false if the connection is broken.

customData: Record<string, Serializable> = {}

Object for holding custom data about the client.

identifier: string

UUID generated by the Server.

Internal Data

socket: SocketLike

The WebSocket used to communicate with the the client

Generated using TypeDoc