socket.io-client
Advanced tools
Comparing version 1.0.6 to 1.1.0
1.1.0 / 2014-09-04 | ||
================== | ||
* socket: fix in `has-binary` | ||
* package: bump `socket.io-parser` | ||
* package: bump `engine.io-client` | ||
* further increase test timeout. | ||
* double to singly quotes in tests. | ||
* extend timeout and remember to close everything in each test case | ||
* fix travis | ||
* add travis + zuul matrix | ||
* use svg instead of png to get better image quality in readme | ||
* make CI build faster | ||
* removed unnecessary code from try block. Only decode packet is needed. | ||
* package: bump `browserify` | ||
* package: bump `engine.io-client` | ||
* fix autoConnect option | ||
* npmignore: ignore `.gitignore` | ||
* package: update `browserify` | ||
* don't fire an extra reconnect when we're not reconnecting | ||
after a failed initial connect attempt | ||
* package: bump `socket.io-parser` for `component-emitter` dep fix | ||
* updated tests to reflect `autoConnect` option | ||
* add `autoConnect` option to wait with connecting | ||
1.0.6 / 2014-06-19 | ||
@@ -3,0 +28,0 @@ ================== |
@@ -55,3 +55,4 @@ | ||
this.decoder = new parser.Decoder(); | ||
this.open(); | ||
this.autoConnect = opts.autoConnect !== false; | ||
if (this.autoConnect) this.open(); | ||
} | ||
@@ -155,3 +156,4 @@ | ||
Manager.prototype.maybeReconnectOnOpen = function() { | ||
if (!this.openReconnect && !this.reconnecting && this._reconnection) { | ||
// Only try to reconnect if it's the first time we're connecting | ||
if (!this.openReconnect && !this.reconnecting && this._reconnection && this.attempts === 0) { | ||
// keeps reconnection from firing twice for the same reconnection loop | ||
@@ -158,0 +160,0 @@ this.openReconnect = true; |
@@ -12,3 +12,3 @@ | ||
var debug = require('debug')('socket.io-client:socket'); | ||
var hasBin = require('has-binary-data'); | ||
var hasBin = require('has-binary'); | ||
var indexOf = require('indexof'); | ||
@@ -60,3 +60,3 @@ | ||
this.acks = {}; | ||
this.open(); | ||
if (this.io.autoConnect) this.open(); | ||
this.receiveBuffer = []; | ||
@@ -63,0 +63,0 @@ this.sendBuffer = []; |
{ | ||
"name": "socket.io-client", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"keywords": [ | ||
@@ -14,8 +14,8 @@ "realtime", | ||
"debug": "0.7.4", | ||
"engine.io-client": "1.3.1", | ||
"engine.io-client": "1.4.0", | ||
"component-bind": "1.0.0", | ||
"component-emitter": "1.1.2", | ||
"object-component": "0.0.3", | ||
"socket.io-parser": "2.2.0", | ||
"has-binary-data": "0.1.1", | ||
"socket.io-parser": "2.2.2", | ||
"has-binary": "0.1.5", | ||
"indexof": "0.0.1", | ||
@@ -27,9 +27,9 @@ "object-component": "0.0.3", | ||
"devDependencies": { | ||
"socket.io": "1.0.6", | ||
"socket.io": "1.1.0", | ||
"mocha": "1.16.2", | ||
"zuul": "1.6.3", | ||
"zuul": "1.10.2", | ||
"istanbul": "0.2.1", | ||
"expect.js": "0.2.0", | ||
"uglify-js": "2.4.8", | ||
"browserify": "2.35.1", | ||
"browserify": "4.2.1", | ||
"base64-arraybuffer": "0.1.0", | ||
@@ -36,0 +36,0 @@ "text-blob-builder": "0.0.1", |
# socket.io-client | ||
[![Build Status](https://secure.travis-ci.org/Automattic/socket.io-client.png)](http://travis-ci.org/Automattic/socket.io-client) | ||
[![NPM version](https://badge.fury.io/js/socket.io-client.png)](http://badge.fury.io/js/socket.io-client) | ||
[![Build Status](https://secure.travis-ci.org/Automattic/socket.io-client.svg)](http://travis-ci.org/Automattic/socket.io-client) | ||
[![NPM version](https://badge.fury.io/js/socket.io-client.svg)](http://badge.fury.io/js/socket.io-client) | ||
@@ -92,2 +92,4 @@ ## How to use | ||
and `connect_timeout` events are emitted (`20000`) | ||
- `autoConnect` by setting this false, you have to call `manager.open` | ||
whenever you decide it's appropriate | ||
@@ -94,0 +96,0 @@ #### Events |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
166
195865
14
6083
+ Addedhas-binary@0.1.5
+ Addedbenchmark@1.0.0(transitive)
+ Addedengine.io-client@1.4.0(transitive)
+ Addedengine.io-parser@1.1.0(transitive)
+ Addedhas-binary@0.1.5(transitive)
+ Addedparseuri@0.0.4(transitive)
+ Addedsocket.io-parser@2.2.2(transitive)
- Removedhas-binary-data@0.1.1
- Removedengine.io-client@1.3.1(transitive)
- Removedengine.io-parser@1.0.6(transitive)
- Removedhas-binary-data@0.1.1(transitive)
- Removedsocket.io-parser@2.2.0(transitive)
Updatedengine.io-client@1.4.0
Updatedsocket.io-parser@2.2.2