Comparing version 7.4.1 to 7.4.2
@@ -109,2 +109,20 @@ // Type definitions for ws 7.4 | ||
once(event: 'close', listener: (this: WebSocket, code: number, reason: string) => void): this; | ||
once(event: 'error', listener: (this: WebSocket, err: Error) => void): this; | ||
once(event: 'upgrade', listener: (this: WebSocket, request: http.IncomingMessage) => void): this; | ||
once(event: 'message', listener: (this: WebSocket, data: WebSocket.Data) => void): this; | ||
once(event: 'open' , listener: (this: WebSocket) => void): this; | ||
once(event: 'ping' | 'pong', listener: (this: WebSocket, data: Buffer) => void): this; | ||
once(event: 'unexpected-response', listener: (this: WebSocket, request: http.ClientRequest, response: http.IncomingMessage) => void): this; | ||
once(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this; | ||
off(event: 'close', listener: (this: WebSocket, code: number, reason: string) => void): this; | ||
off(event: 'error', listener: (this: WebSocket, err: Error) => void): this; | ||
off(event: 'upgrade', listener: (this: WebSocket, request: http.IncomingMessage) => void): this; | ||
off(event: 'message', listener: (this: WebSocket, data: WebSocket.Data) => void): this; | ||
off(event: 'open' , listener: (this: WebSocket) => void): this; | ||
off(event: 'ping' | 'pong', listener: (this: WebSocket, data: Buffer) => void): this; | ||
off(event: 'unexpected-response', listener: (this: WebSocket, request: http.ClientRequest, response: http.IncomingMessage) => void): this; | ||
off(event: string | symbol, listener: (this: WebSocket, ...args: any[]) => void): this; | ||
addListener(event: 'close', listener: (code: number, message: string) => void): this; | ||
@@ -111,0 +129,0 @@ addListener(event: 'error', listener: (err: Error) => void): this; |
{ | ||
"name": "@types/ws", | ||
"version": "7.4.1", | ||
"version": "7.4.2", | ||
"description": "TypeScript definitions for ws", | ||
@@ -59,4 +59,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "88eb5948b3010711a63042f8323d899704eefcd9b7233dd9b0820e183549a154", | ||
"typesPublisherContentHash": "9fbd148321366b984c199352950bf805182888f4e2b42d9d2f46853bf41f2b89", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 02 Apr 2021 00:31:11 GMT | ||
* Last updated: Tue, 27 Apr 2021 06:01:20 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
18067
271