Hierarchy

  • WebSocketManager

Constructors

Properties

connectedAt: null | Date = null

The date since the last initial connection was established.

emitter: TypedEventEmitter<WebsocketManagerEvents> = ...

Emitter in charge of emitting ws gateway related events

heartbeater: null | default = null

Heartbeating helper

isAlive: boolean = false

Whether or not this connection is connected and heartbeating.

lastMessageId: null | string = null

The last message id received. Used in the event of resuming connections.

lastPingedAt: number = 0

The timestamp in milliseconds of the last ping request.

ping: number = 0

The amount of milliseconds the websocket took to respond to the last ping request. This will be zero before the first heartbeat

reconnectAttemptAmount: number = 0

Count of how many times a reconnect has been attempted

socket: null | WebSocket = null

The websocket connected to guilded.

token: string = ...

Token used to authenticate requests.

version: 1 = ...

The version of the websocket to connect to.

Accessors

  • get wsURL(): string
  • The url that will be used to connect. Prioritizes proxy url and if not available uses the default base url for guidled.

    Returns string

Methods

  • Parameters

    • opts: {
          blockReconnects: boolean;
      }
      • blockReconnects: boolean

    Returns void

Generated using TypeDoc