Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ServerBase

Index

Constructors

constructor

Properties

Private _checkServerBound

_checkServerBound: function

Type declaration

    • (): void
    • Returns void

Private _checkServerTimeoutId

_checkServerTimeoutId: number | null

Private _io

_io: Io | null

Private _isFirst

_isFirst: boolean

Private _keepAliveTimeoutId

_keepAliveTimeoutId: number | null

Private _keepServerAlwaysBound

_keepServerAlwaysBound: function

Type declaration

    • (): void
    • Returns void

Private _keepServerBound

_keepServerBound: function

Type declaration

    • (): void
    • Returns void

Private _onConnectedBound

_onConnectedBound: function

Type declaration

    • (): void
    • Returns void

Private _onDisconnectedBound

_onDisconnectedBound: function

Type declaration

    • (): void
    • Returns void

Private _onFailBound

_onFailBound: function

Type declaration

    • (): void
    • Returns void

Private _onMessageBound

_onMessageBound: function

Type declaration

    • (message: string): void
    • Parameters

      • message: string

      Returns void

Private _pingServerAlwaysBound

_pingServerAlwaysBound: function

Type declaration

    • (): void
    • Returns void

Private _pingServerBound

_pingServerBound: function

Type declaration

    • (): void
    • Returns void

Private _pingTimeoutId

_pingTimeoutId: number | null

Private _protocol

_protocol: string | null

Private _sttgs

_sttgs: Settings

Protected _triggers

_triggers: ServerTriggers

Private _unsentMessageId

_unsentMessageId: number

Private _unsentMessages

_unsentMessages: UnsentMessage[]

Static _checkingServers

_checkingServers: ServerBase[] = []

Static _keepingServers

_keepingServers: ServerBase[] = []

Static _pingServers

_pingServers: ServerBase[] = []

Methods

Private addUnsent_

  • addUnsent_(id: number, unsents: UnsentMessage[], messageString: string): void

ajax_

Private callNext_

  • callNext_(servers: ServerBase[], method: function): void

Private checkServer_

  • checkServer_(): void

Private cleanupUnsents_

connect_

  • connect_(): this

disconnect_

  • disconnect_(): this

Private flush_

  • flush_(messageQueue: string[], ackInfo: AckInfo): void

getIo_

  • getIo_(): Io | null

getProtocol_

getSettings_

isConnected_

  • isConnected_(): boolean

Private keepServerRemove_

  • keepServerRemove_(): void

Private keepServer_

  • keepServer_(): void

Private makeOnMessageBound_

  • makeOnMessageBound_(interval: number): function

Private pingServerAlways_

  • pingServerAlways_(): void

Private pingServerRemove_

  • pingServerRemove_(): void

Private pingServer_

  • pingServer_(): void

Private preprocessMessage_

  • preprocessMessage_(message: string, messageQueue: string[], ackInfo: AckInfo): void

Private sendKeepRequest_

  • sendKeepRequest_(): void

Private sendPingRequest_

  • sendPingRequest_(): void

Private sendRetryRequest_

  • sendRetryRequest_(): void

Private sendUnsents_

send_

  • send_(type: string, content: unknown): this

send__

  • send__(data: string): this

setProtocol_

  • setProtocol_(protocol: string): this

stopServerCheck_

  • stopServerCheck_(): void

Private toRandomizedInterval_

  • toRandomizedInterval_(interval: number): number

Static findProtocol_

Static toMessageString_

  • toMessageString_(type: string, content: unknown): string | null

Generated using TypeDoc