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

engine.io-client

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

engine.io-client - npm Package Compare versions

Comparing version 0.7.9 to 0.7.10

9

History.md
0.7.10 / 2013-10-28
===================
* fixed issue which prevented IE9 and under to pass Cookies to server during handshake
* package: update "ws" to v0.4.31
* fixed - there is no host property only hostname
* fixed - flash socket creation
* fixed - emit errors thrown by xhr.send()
0.7.9 / 2013-08-30

@@ -3,0 +12,0 @@ ==================

5

lib/transports/flashsocket.js

@@ -93,3 +93,4 @@ /**

WebSocket.__addTask(function () {
WS.prototype.doOpen.call(self);
self.socket = new WebSocket(self.uri());
self.addEventListeners();
});

@@ -148,3 +149,3 @@ });

if (843 != self.policyPort) {
WebSocket.loadFlashPolicyFile('xmlsocket://' + self.host + ':' + self.policyPort);
WebSocket.loadFlashPolicyFile('xmlsocket://' + self.hostname + ':' + self.policyPort);
}

@@ -151,0 +152,0 @@

2

lib/transports/index.js

@@ -43,3 +43,3 @@

// some user agents have empty `location.port`
if (Number(port) !== port) {
if (!port) {
port = isSSL ? 443 : 80;

@@ -46,0 +46,0 @@ }

@@ -50,3 +50,3 @@ /**

// some user agents have empty `location.port`
if (Number(port) !== port) {
if (!port) {
port = isSSL ? 443 : 80;

@@ -213,3 +213,13 @@ }

debug('sending xhr with url %s | data %s', this.uri, this.data);
xhr.send(this.data);
try {
xhr.send(this.data);
} catch (e) {
// Need to defer since .create() is called directly from the constructor
// and thus the 'error' event can only be only bound *after* this exception
// occurs. Therefore, also, we cannot throw here at all.
setTimeout(function() {
self.onError(e);
}, 0);
return;
}

@@ -216,0 +226,0 @@ if (xobject) {

@@ -66,2 +66,14 @@ /**

this.socket = new WebSocket(uri, protocols, opts);
this.addEventListeners();
};
/**
* Adds event listeners to the socket
*
* @api private
*/
WS.prototype.addEventListeners = function() {
var self = this;
this.socket.onopen = function(){

@@ -68,0 +80,0 @@ self.onOpen();

{
"name": "engine.io-client",
"description": "Client for the realtime Engine",
"version": "0.7.9",
"version": "0.7.10",
"homepage": "https://github.com/LearnBoost/engine.io-client",

@@ -23,3 +23,3 @@ "contributors": [

"has-cors": "https://github.com/component/has-cors/archive/v1.0.2.tar.gz",
"ws": "https://github.com/TooTallNate/ws/archive/0cb9fe7a21a7a7c200f68b57916d1d62b66082a1.tar.gz",
"ws": "0.4.31",
"xmlhttprequest": "https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz",

@@ -26,0 +26,0 @@ "emitter": "http://github.com/component/emitter/archive/1.0.1.tar.gz",

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