Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractWsAdapter<TServer, TClient, TOptions>

Type parameters

Hierarchy

Implements

  • WebSocketAdapter<TServer, TClient, TOptions>

Index

Constructors

constructor

  • new AbstractWsAdapter(appOrHttpServer?: INestApplicationContext | any): AbstractWsAdapter

Properties

Protected Readonly httpServer

httpServer: any

Methods

bindClientConnect

  • bindClientConnect(server: TServer, callback: Function): void

bindClientDisconnect

  • bindClientDisconnect(client: TClient, callback: Function): void

Abstract bindMessageHandlers

  • bindMessageHandlers(client: TClient, handlers: WsMessageHandler[], transform: (data: any) => Observable<any>): any
  • Parameters

    • client: TClient
    • handlers: WsMessageHandler[]
    • transform: (data: any) => Observable<any>
        • (data: any): Observable<any>
        • Parameters

          • data: any

          Returns Observable<any>

    Returns any

close

  • close(server: TServer): void

Abstract create

  • create(port: number, options?: TOptions): TServer

Generated using TypeDoc