Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/ws

Package Overview
Dependencies
Maintainers
1
Versions
77
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.6 to 7.2.7

25

ws/index.d.ts

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

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