ngx-socket-io
Advanced tools
Comparing version 4.5.0 to 4.5.1
{ | ||
"name": "ngx-socket-io", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "Socket.IO module for Angular", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -13,2 +13,14 @@ # ngx-socket-io | ||
**Important:** | ||
Make sure you're using the proper corresponding version of socket.io on the server. | ||
| Package Version | Socket-io Server Version | Angular version | | ||
|-----------------|--------------------------|-----------------| | ||
| v3.4.0 | v2.2.0 | | | ||
| v4.1.0 | v4.0.0 | 12.x | | ||
| v4.2.0 | v4.0.0 | 13.x | | ||
| v4.3.0 | v4.5.1 | 14.x | | ||
| v4.4.0 | v4.5.1 | 15.x | | ||
## How to use | ||
@@ -53,3 +65,3 @@ | ||
getMessage() { | ||
return this.socket.fromEvent('message').pipe(map(data => data.msg)); | ||
return this.socket.fromEvent('message').pipe(map((data) => data.msg)); | ||
} | ||
@@ -56,0 +68,0 @@ } |
@@ -20,2 +20,12 @@ import { Observable } from 'rxjs'; | ||
fromOneTimeEvent<T>(eventName: string): Promise<T>; | ||
listeners(eventName: string): any; | ||
listenersAny(): any; | ||
listenersAnyOutgoing(): any; | ||
off(eventName?: string, listener?: Function[]): any; | ||
onAny(callback: (event: string, ...args: any[]) => void): any; | ||
onAnyOutgoing(callback: (event: string, ...args: any[]) => void): any; | ||
prependAny(callback: (event: string, ...args: any[]) => void): any; | ||
prependAnyOutgoing(callback: (event: string | symbol, ...args: any[]) => void): any; | ||
timeout(value: number): any; | ||
volatile(): any; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70225
614
176