Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebSocketClient<User, Value, Credential>

Type parameters

Hierarchy

  • ClientEmitter<WebSocketClientContext<User, Value>>
    • WebSocketClient

Index

Constructors

  • new WebSocketClient<User, Value, Credential>(__namedParameters?: ClientOptions<User, Credential>): WebSocketClient<User, Value, Credential>

Accessors

  • get channel(): null | WebSocketConnection
  • get isClosed(): boolean
  • get isConnected(): boolean
  • get user(): null | User

Methods

  • _emitError(err: Error): void
  • _emitEvent(ctx: WebSocketClientContext<User, Value>): void
  • close(code?: number, reason?: string): void
  • onError(listener: (err: Error) => void): void
  • onEvent(listener: (ctx: WebSocketClientContext<User, Value>) => void): void
  • removeErrorListener(listener: (err: Error) => void): boolean
  • removeEventListener(listener: (ctx: WebSocketClientContext<User, Value>) => void): boolean

Generated using TypeDoc