@types/socket.io
Advanced tools
Comparing version 1.4.33 to 1.4.34
@@ -477,2 +477,17 @@ // Type definitions for socket.io 1.4.4 | ||
interface Packet extends Array<any> { | ||
/** | ||
* Event name | ||
*/ | ||
[0]: string; | ||
/** | ||
* Packet data | ||
*/ | ||
[1]: any; | ||
/** | ||
* Ack function | ||
*/ | ||
[2]: (...args: any[]) => void; | ||
} | ||
/** | ||
@@ -617,2 +632,9 @@ * The socket, which handles our connection for a namespace. NOTE: while | ||
/** | ||
* Registers a middleware, which is a function that gets executed for every incoming Packet and receives as parameter the packet and a function to optionally defer execution to the next registered middleware. | ||
* | ||
* Errors passed to middleware callbacks are sent as special error packets to clients. | ||
*/ | ||
use( fn: ( packet: Packet, next: (err?: any) => void ) => void ): Socket; | ||
/** | ||
* Sends a 'message' event | ||
@@ -619,0 +641,0 @@ * @see emit( event, ...args ) |
{ | ||
"name": "@types/socket.io", | ||
"version": "1.4.33", | ||
"version": "1.4.34", | ||
"description": "TypeScript definitions for socket.io", | ||
@@ -36,3 +36,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
@@ -43,4 +43,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "1dc48fcb2f2809f6cd90b537509c61c69bfb2e9c87fdb82ac395813ba6064675", | ||
"typesPublisherContentHash": "70138adabb89f7ae7921887c85250c73efe557912a1e724fb805884d5c261d24", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socket.io | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socket.io | ||
Additional Details | ||
* Last updated: Fri, 30 Mar 2018 14:35:30 GMT | ||
* Last updated: Thu, 31 May 2018 20:09:03 GMT | ||
* Dependencies: node | ||
@@ -14,0 +14,0 @@ * Global values: SocketIO |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
701
24441