Options
All
  • Public
  • Public/Protected
  • All
Menu

ALPHA, do not use The Router route messages from different servers

Hierarchy

  • Router

Index

Properties

_connector

_connector: IRouterConnector

Accessors

connector

Methods

broadcast

  • broadcast(data: string | ArrayBufferLike | Blob | ArrayBufferView): void

clear

  • clear(): void

delete

  • delete(id: string): void

destroy

  • destroy(): void

emitState

  • emitState(id: string, ws: WebSocket): void

get

  • get(id: string): WebSocket

onBroadcast

  • onBroadcast(data: any): void

onClose

  • onClose(id: string, code: number, reason: string): boolean

onMessage

  • onMessage(id: string, data: any): boolean

onMessageSubscribe

onMessageUnsubscribe

onRequestReadyState

  • onRequestReadyState(id: string, data: any): number

onStatus

  • onStatus(id: string, status: number): void

set

  • set(id: string, ws: WebSocket): void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc