nativescript-websockets
Advanced tools
Comparing version
{ | ||
"name": "nativescript-websockets", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "A WebSocket NativeScript module for Android and iOS", | ||
@@ -5,0 +5,0 @@ "main": "websockets", |
@@ -12,12 +12,10 @@ [](https://www.npmjs.com/package/nativescript-websockets) | ||
## License | ||
My code is (c)2015-2018, Master Technology. All my code is LICENSED under the MIT License. The Android Library is also MIT, the iOS libraries used Apache 2.0; which you may view them by reading the "LICENSE" file. | ||
My code is (c)2015-2019, Master Technology. All my code is LICENSED under the MIT License. The Android Library is also MIT, the iOS libraries used Apache 2.0; which you may view them by reading the "LICENSE" file. | ||
I also do contract work; so if you have a module you want built for NativeScript (or any other software projects) feel free to contact me [nathan@master-technology.com](mailto://nathan@master-technology.com). | ||
[](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=HN8DDMWVGBNQL&lc=US&item_name=Nathanael%20Anderson&item_number=nativescript%2dwebsockets&no_note=1&no_shipping=1¤cy_code=USD&bn=PP%2dDonationsBF%3ax%3aNonHosted) | ||
[](https://www.patreon.com/NathanaelA) | ||
If you want professional and support plugins; checkout the all new [https://proplugins.org](https://proplugins.org) | ||
## Installation | ||
@@ -24,0 +22,0 @@ |
@@ -159,2 +159,2 @@ /***************************************************************************************** | ||
// We attach to the GLOBAL object, so this is not available everywhere. | ||
global.WebSocket = BrowserWebSockets; | ||
global.WebSocket = BrowserWebSockets; |
@@ -101,6 +101,8 @@ /***************************************************************************************** | ||
// TODO: remove this when the readystate issue gets resolved. | ||
var self = this; | ||
var self = this; | ||
setTimeout(function() { | ||
self.wrapper._notify("close", [self.wrapper, code, reason]); | ||
self.wrapper = null; // Clean up memory | ||
if (self.wrapper) { | ||
self.wrapper._notify('close', [self.wrapper, code, reason]) | ||
self.wrapper = null; // Clean up memory | ||
} | ||
}, 1); | ||
@@ -107,0 +109,0 @@ } |
@@ -0,0 +0,0 @@ /***************************************************************************************** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1310
0.08%178758
-1.1%171
-1.16%