Socket
Socket
Sign inDemoInstall

@types/ws

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ws - npm Package Compare versions

Comparing version 7.2.2 to 7.2.3

18

ws/index.d.ts

@@ -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 @@

4

ws/package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc