Class TestingConnectionWrapper<T>Abstract

Deprecated

Use TCWrapper instead.

Type Parameters

  • T

Hierarchy

Constructors

Properties

_id: number = ++WebsocketConnection.AUTO_INCREMENT

Unique client id per server instance. This incremental value is resetted once the process is restarted.

callback: ((v) => any)

Type declaration

    • (v): any
    • Parameters

      • v: T

      Returns any

clientInformation: {
    browser: string;
    ip: string;
    location: string;
}

Information about the client connected to the WebSocket.

Type declaration

  • browser: string
  • ip: string
  • location: string
connection: WebSocket

The WebSocket connection object representing the connection to the client.

description: string = "PUBLIC"

Describes the clients auth state

expectedMethod: string
expectedMethodCalled: boolean = false
token: string = null

Can be used to store session credentials.

router: WebsocketRouter = ...

Refers to a websocket router instance.

Accessors

Methods

  • Calculates the modified rows of data, that have been changed since the last time data was cached.

    Parameters

    • method: string

      The method of the associated Outbound.

    • data: {
          id: number;
      }[]

      The data returned from the outbound function.

    • Optional isPartial: boolean

      True when a part of the data is only present

    Returns {
        data: string | any[];
        deleted: any[];
        inserted: any[];
        updated: any[];
    }

    the data changes (inserted, updated, deleted)

    • data: string | any[]
    • deleted: any[]
    • inserted: any[]
    • updated: any[]
  • Outbound request config is used to store the length of entries, that have been previously requested by this client for partially sent outbounds.

    Parameters

    • method: string

      The method of the outbound

    Returns {
        count: number;
        groupId: number;
        id: number;
    }

    the outbound request config

    • count: number
    • groupId: number
    • id: number
  • Outbound request config is used to store the length of entries, that have been previously requested by this client for partially sent outbounds.

    Parameters

    • method: string

      The method of the outbound

    • count: number

      The length of entries that have been requested.

    • groupId: number
    • id: number

    Returns void

  • Updates the cached outbound data for the associated outbound method.

    Parameters

    • method: string

      The method of the associated Outbound.

    • inserted: any[]

      The contents that have been added since the last time.

    • updated: any[]

      The contents that have been modified since the last time.

    • deleted: any[]

      The contents that have been removed since the last time.

    Returns void

Generated using TypeDoc