Socket
Socket
Sign inDemoInstall

@types/ws

Package Overview
Dependencies
2
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.5.1 to 8.5.2

14

ws/index.d.ts

@@ -44,2 +44,4 @@ // Type definitions for ws 8.5

readonly extensions: string;
/** Indicates whether the websocket is paused */
readonly isPaused: boolean;
readonly protocol: string;

@@ -87,2 +89,14 @@ /** The current state of the connection */

/**
* Pause the websocket causing it to stop emitting events. Some events can still be
* emitted after this is called, until all buffered data is consumed. This method
* is a noop if the ready state is `CONNECTING` or `CLOSED`.
*/
pause(): void;
/**
* Make a paused socket resume emitting events. This method is a noop if the ready
* state is `CONNECTING` or `CLOSED`.
*/
resume(): void;
// HTML5 WebSocket events

@@ -89,0 +103,0 @@ addEventListener(

6

ws/package.json
{
"name": "@types/ws",
"version": "8.5.1",
"version": "8.5.2",
"description": "TypeScript definitions for ws",

@@ -60,4 +60,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ws",

},
"typesPublisherContentHash": "44cfe58679c6fe88514fa1a812d2e19ae226568e93a3aec698193a9d4f8cbc18",
"typeScriptVersion": "3.8",
"typesPublisherContentHash": "60bc396d4e227e7caaf1c042796b37f092ff47f0cc499a6994a0f38590aa0645",
"typeScriptVersion": "3.9",
"exports": {

@@ -64,0 +64,0 @@ ".": {

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 24 Feb 2022 22:01:44 GMT
* Last updated: Tue, 01 Mar 2022 21:01:59 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc