Socket
Socket
Sign inDemoInstall

@types/websocket

Package Overview
Dependencies
3
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.38 to 0.0.39

29

websocket/index.d.ts

@@ -673,2 +673,31 @@ // Type definitions for websocket

declare class w3cwebsocket {
static CONNECTING: number;
static OPEN: number;
static CLOSING: number;
static CLOSED: number;
url: string;
readyState: number;
protocol?: string;
extenstions: IExtension[];
bufferedAmount: number;
CONNECTING: number;
OPEN: number;
CLOSING: number;
CLOSED: number;
onopen: () => void;
onerror: (error: Error) => void;
onclose: () => void;
onmessage: (message: any) => void;
constructor(url: string, protocols?: string[], origin?: string, headers?: any[], requestOptions?: object, clientConfig?: IClientConfig);
send(data: Buffer): void;
send(data: IStringified): void;
close(code?: number, reason?: string): void;
}
export declare var version: string;

@@ -675,0 +704,0 @@ export declare var constants: {

6

websocket/package.json
{
"name": "@types/websocket",
"version": "0.0.38",
"version": "0.0.39",
"description": "TypeScript definitions for websocket",

@@ -31,3 +31,3 @@ "license": "MIT",

"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git"
},

@@ -39,4 +39,4 @@ "scripts": {},

},
"typesPublisherContentHash": "26f4cc912508ab45ff3c86bd71a7909f6ade94189c80c1b150295d7670ce2a20",
"typesPublisherContentHash": "ed6c43e56365d988b052ff7c0e0af279649cc55a165a8b1dc733126a8e1688af",
"typeScriptVersion": "2.2"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/websocket
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/websocket
Additional Details
* Last updated: Fri, 09 Mar 2018 00:09:14 GMT
* Last updated: Fri, 04 May 2018 23:55:56 GMT
* Dependencies: events, http, https, net, url, node

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc