Socket
Socket
Sign inDemoInstall

@types/engine.io

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/engine.io - npm Package Compare versions

Comparing version 3.1.5 to 3.1.6

40

engine.io/index.d.ts

@@ -18,4 +18,4 @@ // Type definitions for engine.io 3.1

type: string;
options?: MessageOptions;
data?: Message;
options?: MessageOptions | undefined;
data?: Message | undefined;
}

@@ -28,15 +28,15 @@ type AllowRequestFunction = (req: http.IncomingMessage, fn: (err: string|null|undefined, success: boolean) => void) => void;

*/
pingTimeout?: number;
pingTimeout?: number | undefined;
/**
* how many ms before sending a new ping packet (25000)
*/
pingInterval?: number;
pingInterval?: number | undefined;
/**
* how many ms before an uncompleted transport upgrade is cancelled (10000)
*/
upgradeTimeout?: number;
upgradeTimeout?: number | undefined;
/**
* how many bytes or characters a message can be, before closing the session (to avoid DoS). Default value is 10E6.
*/
maxHttpBufferSize?: number;
maxHttpBufferSize?: number | undefined;
/**

@@ -48,11 +48,11 @@ * A function that receives a given handshake or upgrade request as its first parameter,

*/
allowRequest?: AllowRequestFunction;
allowRequest?: AllowRequestFunction | undefined;
/**
* to allow connections to (['polling', 'websocket'])
*/
transports?: Transport[];
transports?: Transport[] | undefined;
/**
* whether to allow transport upgrades (true)
*/
allowUpgrades?: boolean;
allowUpgrades?: boolean | undefined;
/**

@@ -69,3 +69,3 @@ * parameters of the WebSocket permessage-deflate extension (see ws module api docs). Set to false to disable. (true)

*/
cookie?: string|boolean;
cookie?: string|boolean | undefined;
/**

@@ -77,3 +77,3 @@ * path of the above cookie option. If false, no path will be sent,

*/
cookiePath?: string|boolean;
cookiePath?: string|boolean | undefined;
/**

@@ -84,3 +84,3 @@ * If true HttpOnly io cookie cannot be accessed by client-side APIs,

*/
cookieHttpOnly?: boolean;
cookieHttpOnly?: boolean | undefined;
/**

@@ -91,7 +91,7 @@ * what WebSocket server implementation to use. Specified module must

*/
wsEngine?: "ws"|"uws";
wsEngine?: "ws"|"uws" | undefined;
/**
* an optional packet which will be concatenated to the handshake packet emitted by Engine.IO.
*/
initialPacket?: Message;
initialPacket?: Message | undefined;
}

@@ -102,15 +102,15 @@ interface AttachOptions {

*/
path?: string;
path?: string | undefined;
/**
* destroy unhandled upgrade requests (true)
*/
destroyUpgrade?: boolean;
destroyUpgrade?: boolean | undefined;
/**
* milliseconds after which unhandled requests are ended (1000)
*/
destroyUpgradeTimeout?: number;
destroyUpgradeTimeout?: number | undefined;
/**
* whether to let engine.io handle the OPTIONS requests. You can also pass a custom function to handle the requests (true)
*/
handlePreflightRequest?: boolean|((req: http.IncomingMessage, res: http.ServerResponse) => void);
handlePreflightRequest?: boolean|((req: http.IncomingMessage, res: http.ServerResponse) => void) | undefined;
}

@@ -120,3 +120,3 @@ interface ServerAttachOptions extends ServerOptions, AttachOptions {}

interface MessageOptions {
compress?: boolean;
compress?: boolean | undefined;
}

@@ -150,3 +150,3 @@

close(): this;
readonly httpServer?: http.Server;
readonly httpServer?: http.Server | undefined;
/**

@@ -153,0 +153,0 @@ * Called internally when a Engine request is intercepted.

{
"name": "@types/engine.io",
"version": "3.1.5",
"version": "3.1.6",
"description": "TypeScript definitions for engine.io",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/engine.io",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "b99fe904f9c2cf6acd9eeb1cbaa247593d54334723b29b1397eed4de6ef25f53",
"typeScriptVersion": "3.3"
"typesPublisherContentHash": "8bc85b4eabf21b3b85ec911c127b25250c4d6f43b03f324afdb7b0ea7bd923da",
"typeScriptVersion": "3.6"
}

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

### Additional Details
* Last updated: Wed, 06 Jan 2021 03:47:04 GMT
* Last updated: Tue, 06 Jul 2021 19:03: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