Class CommandRouter

Hierarchy

Constructors

Properties

_listeners: { command?: EventListener<{ args: [EventCommand] }>[]; error?: EventListener<{ args: [Error] }>[] } = {}

Type declaration

apiClient: APIClient
off: (<K>(type: K, callback: EventListener<WebsocketEventMap<EventCommand>[K]>) => void) = ...

Type declaration

on: (<K>(type: K, callback: EventListener<WebsocketEventMap<EventCommand>[K]>) => (() => void)) = ...

Type declaration

Methods

  • Parameters

    Returns Promise<void>

  • Returns Promise<unknown>

  • Returns void

Generated using TypeDoc