Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SocketClient

Index

Constructors

constructor

  • new SocketClient(endpoint: string, options?: any): SocketClient

Properties

Private _socket

_socket: typeof Socket

Methods

close

  • close(): void

off

  • off<TChannel>(channel: TChannel, fn: (response: ResponseByChannel<TChannel>) => unknown): this

offError

  • offError(fn: Function): this

on

  • on<TChannel>(channel: TChannel, fn: (response: ResponseByChannel<TChannel>) => unknown): this

onConnect

  • onConnect(fn: Function): this

onError

  • onError(fn: Function): this

subscribe

  • subscribe<TChannel>(channel: TChannel, params: ParamsByChannel<TChannel>): this

unsubscribe

  • unsubscribe<TChannel>(channel: TChannel, params: ParamsByChannel<TChannel>): this

Generated using TypeDoc