@types/socket.io
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -146,2 +146,13 @@ // Type definitions for socket.io 2.1 | ||
/** | ||
* Provides a function taking two arguments origin:String | ||
* and callback(error, success), where success is a boolean | ||
* value indicating whether origin is allowed or not. If | ||
* success is set to false, error must be provided as a string | ||
* value that will be appended to the server response, e.g. “Origin not allowed”. | ||
* @param fn The function that will be called to check the origin | ||
* return This Server | ||
*/ | ||
origins( fn: ( origin: string, callback: ( error: string | null, success: boolean ) => void ) => void ): Server; | ||
/** | ||
* Attaches socket.io to a server | ||
@@ -148,0 +159,0 @@ * @param srv The http.Server that we want to attach to |
{ | ||
"name": "@types/socket.io", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "TypeScript definitions for socket.io", | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "c9c1b55d9a2ba0c737782037e9bece4c846f2db485918d0b9a5991badcb7f586", | ||
"typesPublisherContentHash": "055e3ec36f2cff7d6c32e19fa1d24968617df26a06cc7d1003a08dd4cc7a278f", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 06 Dec 2018 00:19:56 GMT | ||
* Last updated: Fri, 07 Dec 2018 23:32:00 GMT | ||
* Dependencies: @types/node | ||
@@ -14,0 +14,0 @@ * Global values: SocketIO |
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
25568
730