Hierarchy

  • PubSub

Constructors

Properties

WebSocket: {
    CLOSED: 3;
    CLOSING: 2;
    CONNECTING: 0;
    OPEN: 1;
    prototype: WebSocket;
    new (url, protocols?): WebSocket;
}

Type declaration

    • new (url, protocols?): WebSocket
    • Parameters

      • url: string | URL
      • Optional protocols: string | string[]

      Returns WebSocket

  • Readonly CLOSED: 3
  • Readonly CLOSING: 2
  • Readonly CONNECTING: 0
  • Readonly OPEN: 1
  • prototype: WebSocket
authToken: null | string = null
connectCallbacks: PubSubConnectCallback[] = []
connection: undefined | WebSocket
disconnectCallbacks: PubSubDisconnectCallback[] = []
errorCallbacks: PubSubErrorCallback[] = []
noConsole: boolean = false
nymph: Nymph
pubsubUrl: undefined | string
subscriptions: {
    queries: {
        [k: string]: PubSubCallbacks<any>[];
    };
    uids: {
        [k: string]: PubSubCallbacks<number>[];
    };
} = ...

Type declaration

switchToken: null | string = null
waitForConnectionTimeout: undefined | Timeout

Methods

  • Parameters

    • authToken: null | string
    • switchToken: null | string = null

    Returns void

  • Parameters

    • name: string

    Returns ((resolve?, reject?, count?) => {
        unsubscribe: (() => void);
    })

Generated using TypeDoc