Class AbstractWsAdapter<TServer, TClient, TOptions>
Properties
Protected httpServer
httpServer: any
Methods
bindClientConnect
- bindClientConnect(server: TServer, callback: Function): void
-
Parameters
-
server: TServer
-
callback: Function
Returns void
bindClientDisconnect
- bindClientDisconnect(client: TClient, callback: Function): void
-
Parameters
-
client: TClient
-
callback: Function
Returns void
Abstract bindMessageHandlers
- bindMessageHandlers(client: TClient, handlers: WsMessageHandler[], transform: function): any
-
Parameters
-
client: TClient
-
-
transform: function
-
- (data: any): Observable<any>
-
Parameters
Returns Observable<any>
Returns any
close
- close(server: TServer): void
Abstract create
- create(port: number, options?: TOptions): TServer
-
Parameters
-
port: number
-
Optional options: TOptions
Returns TServer