Comparing version 7.4.0 to 7.4.1
@@ -10,2 +10,3 @@ // Type definitions for ws 7.4 | ||
// Bartosz Wojtkowiak <https://github.com/wojtkowiak> | ||
// Kyle Hensel <https://github.com/k-yle> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -26,6 +27,10 @@ | ||
declare class WebSocket extends events.EventEmitter { | ||
static CONNECTING: number; | ||
static OPEN: number; | ||
static CLOSING: number; | ||
static CLOSED: number; | ||
/** The connection is not yet open. */ | ||
static CONNECTING: 0; | ||
/** The connection is open and ready to communicate. */ | ||
static OPEN: 1; | ||
/** The connection is in the process of closing. */ | ||
static CLOSING: 2; | ||
/** The connection is closed. */ | ||
static CLOSED: 3; | ||
@@ -36,9 +41,18 @@ binaryType: string; | ||
protocol: string; | ||
readyState: number; | ||
/** The current state of the connection */ | ||
readyState: | ||
| typeof WebSocket.CONNECTING | ||
| typeof WebSocket.OPEN | ||
| typeof WebSocket.CLOSING | ||
| typeof WebSocket.CLOSED; | ||
url: string; | ||
CONNECTING: number; | ||
OPEN: number; | ||
CLOSING: number; | ||
CLOSED: number; | ||
/** The connection is not yet open. */ | ||
CONNECTING: 0; | ||
/** The connection is open and ready to communicate. */ | ||
OPEN: 1; | ||
/** The connection is in the process of closing. */ | ||
CLOSING: 2; | ||
/** The connection is closed. */ | ||
CLOSED: 3; | ||
@@ -45,0 +59,0 @@ onopen: (event: WebSocket.OpenEvent) => void; |
{ | ||
"name": "@types/ws", | ||
"version": "7.4.0", | ||
"version": "7.4.1", | ||
"description": "TypeScript definitions for ws", | ||
@@ -41,2 +41,7 @@ "license": "MIT", | ||
"githubUsername": "wojtkowiak" | ||
}, | ||
{ | ||
"name": "Kyle Hensel", | ||
"url": "https://github.com/k-yle", | ||
"githubUsername": "k-yle" | ||
} | ||
@@ -55,4 +60,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "77b3e10cf373ea323f596b45785b79dd2b23f671bdbc08a581245f57a083fd1b", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "88eb5948b3010711a63042f8323d899704eefcd9b7233dd9b0820e183549a154", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 09 Nov 2020 23:49:39 GMT | ||
* Last updated: Fri, 02 Apr 2021 00:31:11 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [Paul Loyd](https://github.com/loyd), [Matt Silverlock](https://github.com/elithrar), [Margus Lamp](https://github.com/mlamp), [Philippe D'Alva](https://github.com/TitaneBoy), [reduckted](https://github.com/reduckted), [teidesu](https://github.com/teidesu), and [Bartosz Wojtkowiak](https://github.com/wojtkowiak). | ||
These definitions were written by [Paul Loyd](https://github.com/loyd), [Matt Silverlock](https://github.com/elithrar), [Margus Lamp](https://github.com/mlamp), [Philippe D'Alva](https://github.com/TitaneBoy), [reduckted](https://github.com/reduckted), [teidesu](https://github.com/teidesu), [Bartosz Wojtkowiak](https://github.com/wojtkowiak), and [Kyle Hensel](https://github.com/k-yle). |
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
16529
255