Comparing version 7.2.6 to 7.2.7
@@ -59,10 +59,19 @@ // Type definitions for ws 7.2 | ||
// HTML5 WebSocket events | ||
addEventListener(method: 'message', cb?: (event: { data: any; type: string; target: WebSocket }) => void): void; | ||
addEventListener(method: 'close', cb?: (event: { | ||
addEventListener(method: 'message', cb: (event: { | ||
data: any; | ||
type: string; | ||
target: WebSocket | ||
}, options?: WebSocket.EventListenerOptions) => void): void; | ||
addEventListener(method: 'close', cb: (event: { | ||
wasClean: boolean; code: number; | ||
reason: string; target: WebSocket | ||
}) => void): void; | ||
addEventListener(method: 'error', cb?: (event: {error: any, message: any, type: string, target: WebSocket }) => void): void; | ||
addEventListener(method: 'open', cb?: (event: { target: WebSocket }) => void): void; | ||
addEventListener(method: string, listener?: () => void): void; | ||
}, options?: WebSocket.EventListenerOptions) => void): void; | ||
addEventListener(method: 'error', cb: (event: { | ||
error: any, | ||
message: any, | ||
type: string, | ||
target: WebSocket | ||
}, options?: WebSocket.EventListenerOptions) => void): void; | ||
addEventListener(method: 'open', cb: (event: { target: WebSocket }) => void, options?: WebSocket.EventListenerOptions): void; | ||
addEventListener(method: string, listener: () => void, options?: WebSocket.EventListenerOptions): void; | ||
@@ -196,2 +205,6 @@ removeEventListener(method: 'message', cb?: (event: { data: any; type: string; target: WebSocket }) => void): void; | ||
interface EventListenerOptions { | ||
once?: boolean; | ||
} | ||
interface ServerOptions { | ||
@@ -198,0 +211,0 @@ host?: string; |
{ | ||
"name": "@types/ws", | ||
"version": "7.2.6", | ||
"version": "7.2.7", | ||
"description": "TypeScript definitions for ws", | ||
@@ -59,4 +59,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "e201f77e7884fe181a817b50462656319d0bceef645f0c474c6811f9db33b319", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "8cd215aa17ea5ce0fbdcf5d7ef57c68e70efef180780e2aa366c3bfd1d48e387", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 29 Jun 2020 16:55:03 GMT | ||
* Last updated: Mon, 28 Sep 2020 22:51:14 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
15970
242