Interface WebSocketAdapter<TServer, TClient, TOptions>
Type parameters
-
TServer = any
-
TClient = any
-
TOptions = any
Methods
bindClientConnect
- bindClientConnect(server: TServer, callback: Function): any
Optional bindClientDisconnect
- bindClientDisconnect(client: TClient, callback: Function): any
bindMessageHandlers
- bindMessageHandlers(client: TClient, handlers: WsMessageHandler[], transform: (data: any) => Observable<any>): any
-
Parameters
-
client: TClient
-
-
transform: (data: any) => Observable<any>
-
- (data: any): Observable<any>
-
Parameters
Returns Observable<any>
Returns any
close
- close(server: TServer): any
create
- create(port: number, options?: TOptions): TServer
-
Parameters
-
port: number
-
Optional options: TOptions
Returns TServer