Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseClientHandle

The handle of a client, it basically assigns a state to a socket

Hierarchy

  • BaseClientHandle

Index

Constructors

constructor

  • Parameters

    • __namedParameters: object
      • logger: any
      • server: any
      • ws: any

    Returns BaseClientHandle

Methods

getNiceString

  • getNiceString(): string
  • Returns a string representation of the client

    Returns string

handleClose

  • handleClose(): void
  • Handles a closed connection

    Returns void

handleConnectionDead

  • handleConnectionDead(): void
  • Handles a permanent disconnection

    Returns void

handlePacket

  • handlePacket(packet: any): void
  • Handles a packet

    Parameters

    • packet: any

    Returns void

handleReconnect

  • handleReconnect(token: any): void
  • Handles a successfull reconnection attempt

    Parameters

    • token: any

    Returns void

isDeadConnection

  • isDeadConnection(): boolean
  • False this client is connected or its possible that this client will reconnect

    Returns boolean