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

@types/socket.io

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/socket.io - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

72

socket.io/index.d.ts

@@ -16,2 +16,3 @@ // Type definitions for socket.io 2.1

declare const SocketIO: SocketIOStatic;
import engine = require('engine.io');
export = SocketIO;

@@ -296,3 +297,3 @@ /** @deprecated Available as a global for backwards-compatibility. */

*/
interface ServerOptions {
interface ServerOptions extends engine.ServerAttachOptions {

@@ -323,71 +324,2 @@ /**

origins?: string|string[];
/**
* How many milliseconds without a pong packed to consider the connection closed (engine.io)
* @default 60000
*/
pingTimeout?: number;
/**
* How many milliseconds before sending a new ping packet (keep-alive) (engine.io)
* @default 25000
*/
pingInterval?: number;
/**
* How many bytes or characters a message can be when polling, before closing the session
* (to avoid Dos) (engine.io)
* @default 10E7
*/
maxHttpBufferSize?: number;
/**
* A function that receives a given handshake or upgrade request as its first parameter,
* and can decide whether to continue or not. The second argument is a function that needs
* to be called with the decided information: fn( err, success ), where success is a boolean
* value where false means that the request is rejected, and err is an error code (engine.io)
* @default null
*/
allowRequest?: (request:any, callback: (err: number, success: boolean) => void) => void;
/**
* Transports to allow connections to (engine.io)
* @default ['polling','websocket']
*/
transports?: string[];
/**
* Whether to allow transport upgrades (engine.io)
* @default true
*/
allowUpgrades?: boolean;
/**
* parameters of the WebSocket permessage-deflate extension (see ws module).
* Set to false to disable (engine.io)
* @default true
*/
perMessageDeflate?: Object|boolean;
/**
* Parameters of the http compression for the polling transports (see zlib).
* Set to false to disable, or set an object with parameter "threshold:number"
* to only compress data if the byte size is above this value (1024) (engine.io)
* @default true|1024
*/
httpCompression?: Object|boolean;
/**
* Name of the HTTP cookie that contains the client sid to send as part of
* handshake response headers. Set to false to not send one (engine.io)
* @default "io"
*/
cookie?: string|boolean;
/**
* Whether to let engine.io handle the OPTIONS requests.
* You can also pass a custom function to handle the requests
* @default true
*/
handlePreflightRequest?: ((req: any, res: any) => void) | boolean;
}

@@ -394,0 +326,0 @@

5

socket.io/package.json
{
"name": "@types/socket.io",
"version": "2.1.5",
"version": "2.1.6",
"description": "TypeScript definitions for socket.io",

@@ -57,6 +57,7 @@ "license": "MIT",

"dependencies": {
"@types/engine.io": "*",
"@types/node": "*"
},
"typesPublisherContentHash": "5f91abc685fafca02bf6a5e595341e761084396a9254b4d352231ed9b8fed3a8",
"typesPublisherContentHash": "0e400fadd87f60d334ae230b88f90ff3348c23c3d079a89d89aac519021f4efc",
"typeScriptVersion": "3.0"
}

@@ -11,4 +11,4 @@ # Installation

### Additional Details
* Last updated: Fri, 15 May 2020 13:12:39 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Last updated: Sun, 17 May 2020 14:31:23 GMT
* Dependencies: [@types/engine.io](https://npmjs.com/package/@types/engine.io), [@types/node](https://npmjs.com/package/@types/node)
* Global values: `SocketIO`

@@ -15,0 +15,0 @@

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