Comparing version 7.2.2 to 7.2.3
@@ -241,2 +241,14 @@ // Type definitions for ws 7.2 | ||
once(event: 'connection', cb: (this: Server, socket: WebSocket, request: http.IncomingMessage) => void): this; | ||
once(event: 'error', cb: (this: Server, error: Error) => void): this; | ||
once(event: 'headers', cb: (this: Server, headers: string[], request: http.IncomingMessage) => void): this; | ||
once(event: 'close' | 'listening', cb: (this: Server) => void): this; | ||
once(event: string | symbol, listener: (...args: any[]) => void): this; | ||
off(event: 'connection', cb: (this: Server, socket: WebSocket, request: http.IncomingMessage) => void): this; | ||
off(event: 'error', cb: (this: Server, error: Error) => void): this; | ||
off(event: 'headers', cb: (this: Server, headers: string[], request: http.IncomingMessage) => void): this; | ||
off(event: 'close' | 'listening', cb: (this: Server) => void): this; | ||
off(event: string | symbol, listener: (this: Server, ...args: any[]) => void): this; | ||
addListener(event: 'connection', cb: (client: WebSocket) => void): this; | ||
@@ -247,2 +259,8 @@ addListener(event: 'error', cb: (err: Error) => void): this; | ||
addListener(event: string | symbol, listener: (...args: any[]) => void): this; | ||
removeListener(event: 'connection', cb: (client: WebSocket) => void): this; | ||
removeListener(event: 'error', cb: (err: Error) => void): this; | ||
removeListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this; | ||
removeListener(event: 'close' | 'listening', cb: () => void): this; | ||
removeListener(event: string | symbol, listener: (...args: any[]) => void): this; | ||
} | ||
@@ -249,0 +267,0 @@ |
{ | ||
"name": "@types/ws", | ||
"version": "7.2.2", | ||
"version": "7.2.3", | ||
"description": "TypeScript definitions for ws", | ||
@@ -59,4 +59,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "4956aec51f26437cff00ee1bb021a50b0102529001cea202e50e1caeac6a4799", | ||
"typesPublisherContentHash": "df63355903af9b0bb6cdeb8cf353d951a114d70d50aa5a8057758f32d5ed46e6", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 25 Feb 2020 19:09:03 GMT | ||
* Last updated: Wed, 18 Mar 2020 20:24:11 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15739
235