Tony Kovanen
b0c4c2edd0
Added socket.id property
...
- Make sure `socket.id` is defined on connect
- Make sure `socket.id` is cleared on disconnect
- Make sure `socket.id` is updated on reconnect
2015-01-14 18:18:02 +02:00
Roman Shtylman
1e899abd45
fix url parsing when uri string is undefined
...
The url parser was ignoring port hints from window.location when the uri
string was undefined. This commit changes the parser to use
window.location.host (not hostname) so that the port is preserved.
2015-01-11 13:10:36 -08:00
Mark Mokryn
e8c5779af6
improve fix for GH-786 plus test it and also backoff
2014-11-23 16:50:21 +02:00
Mark Mokryn
42f51126ff
fixes GH-784 and GH-786
2014-11-23 01:56:58 +02:00
Tony Kovanen
512eb3a8a4
Set readyState before engine.io close event.
...
This way we don't need to possibly wait for a drain event before we
actually change the readyState and don't miss reconnects, which
currently happens when linked against the current engine.io-client
master.
2014-10-19 22:10:39 +03:00
Tony Kovanen
b5d808e0d6
Merge pull request #767 from nkzawa/patch-12
...
fix reconnection after reconnecting manually
2014-10-19 13:52:43 +03:00
Naoyuki Kanezawa
bf1fb628df
fix reconnection after reconnecting manually
2014-10-19 12:14:18 +09:00
Naoyuki Kanezawa
a8b3fbea55
enable to stop reconnecting
2014-10-19 12:11:30 +09:00
Tony Kovanen
baf60c1502
Merge pull request #732 from nkzawa/patch-10
...
Enable to reconnect manually
2014-09-21 14:18:50 -06:00
Guillermo Rauch
7912f14c94
Merge pull request #754 from toshipon/patch-1
...
Support no schema relative url
2014-09-11 17:56:17 +03:00
Guillermo Rauch
1a9b168451
socket: fix in has-binary
2014-09-04 11:44:24 +02:00
toshipon
6a9144c226
Support no schema relative url
2014-08-30 18:43:32 +09:00
Naoyuki Kanezawa
a0f63d7408
enable to reconnect manually
2014-07-21 02:20:22 +09:00
Naoyuki Kanezawa
8cc2f57451
fix autoConnect option
2014-07-16 03:59:43 +09:00
Guillermo Rauch
f8afcce007
Merge pull request #680 from FredyC/add-auto-connect
...
Add autoConnect option
2014-06-21 18:12:41 -07:00
Tony Kovanen
05c96325fe
Don't fire an extra reconnect when we're not reconnecting after a failed initial connect attempt
2014-06-21 17:22:34 +03:00
Tony Kovanen
041c95e40a
Added tests and enhanced event propagation
2014-06-19 02:58:22 +03:00
Tony Kovanen
ecc7ba8bda
Only add subs once to begin with, so no need for an if for every .connect() call
2014-06-18 23:16:45 +03:00
Tony Kovanen
e5416ff741
Don't readd subs when reconnecting
2014-06-18 22:48:22 +03:00
Guillermo Rauch
1d8630a874
socket: whitelist connect_error and connect_timeout ( fixes #534 )
2014-06-17 08:08:52 -07:00
Guillermo Rauch
bcba6b1aab
Merge pull request #693 from holic/fix-url-port
...
url: use strings for port, eqeq for port check
2014-06-13 19:19:42 -07:00
唐鳳
84da0c910e
Handle io.connect(null, opts) correctly
...
In migrating to Socket.IO 1.0.x, we had to change `null` into `"/"` in:
```
io.connect(null, opts)
```
( See adbc86e529 (diff-d87f0347aff1316677a2d709ec4b4777R49) )
This is because `typeof null` is `object`, so the options are discarded.
Fixed by checking for truth value of `uri` before checking its type.
2014-06-14 06:26:42 +08:00
Kevin Ingersoll
9c7a0a34fe
url: use strings for port, eqeq for port check
2014-06-13 14:38:50 -07:00
Guillermo Rauch
f4c65a6ba0
Merge pull request #692 from rase-/add/reconnection-events-to-socket
...
Reconnection events propagated to socket
2014-06-13 11:26:57 -07:00
Tony Kovanen
3c6237f051
Rename propagateEvent to emitAll
2014-06-13 21:26:31 +03:00
Tony Kovanen
be3f3c4bb5
Use blacklist instead of internal emit function
2014-06-13 21:21:28 +03:00
Tony Kovanen
f15104dcba
style
2014-06-13 20:27:39 +03:00
Guillermo Rauch
544aae4079
Merge pull request #682 from kevin-roark/add/emit-buffer
...
add a buffer for emitted events to only send after connection
2014-06-13 10:10:34 -07:00
Tony Kovanen
57551c1462
Propagate events to sockets without an internal event listener in Manager
2014-06-13 14:14:57 +03:00
Tony Kovanen
109395ee34
Propagating reconnecting and reconnection events to socket
2014-06-13 03:45:41 +03:00
Tony Kovanen
a20671c511
Propagate reconnection events to socket from manager
2014-06-13 03:28:38 +03:00
Kevin Ingersoll
d08acd89c7
Use explicit port on url ID, not on url href
2014-06-12 14:32:39 -07:00
Kevin Ingersoll
f09d2b439c
Fix protocol regex, use falsy port, use href as unique ID
2014-06-12 14:16:07 -07:00
Kevin Ingersoll
67d077af2e
Fix ports when connecting to 80/443 from non-80/443 host
2014-06-12 14:15:57 -07:00
Guillermo Rauch
1efe0d05c5
index: added BC for force new connection
2014-06-06 09:06:54 -07:00
Reid Burke
e07cec53a0
Merge branch 'deps' of github.com:davglass/socket.io-client into deps
...
Conflicts:
package.json
2014-06-04 15:20:44 -07:00
Kevin Roark
8e76ec1717
add a buffer for emitted events to only send after connection
2014-06-01 23:18:02 -07:00
FredyC
29cc049f37
add autoConnect option to wait with connecting
2014-06-01 09:32:06 +02:00
Kevin Roark
b43ef06adf
distinction between ACK and BINARY_ACK
2014-05-30 18:42:42 -07:00
Dav Glass
64de64cb91
component-emitter@1.1.2, component-bind@1.0.0
2014-05-29 08:54:14 -05:00
Kevin Roark
99bfc07b9d
Allows user-level query string parameters to be in socket.request
...
Uses the full url string rather than parsed.href;
Also relies on a PR in engine.io
2014-04-10 16:26:45 -04:00
Tony Kovanen
588d47e04d
Reconnects in open if it fails
2014-03-12 15:13:25 +02:00
Guillermo Rauch
85e20509fc
Merge pull request #635 from nkzawa/patch-4
...
Should call callback on open
2014-03-12 10:52:01 -02:00
Naoyuki Kanezawa
3ce84e2784
enable reconnection by default
2014-03-12 02:29:23 +09:00
Guillermo Rauch
b49521610e
Merge pull request #636 from nkzawa/patch-5
...
Set the sent flag to true
2014-03-04 14:55:30 -08:00
Julian Salazar
cec50ca7bc
let uri be optional when adding options for lookup()
2014-03-04 12:41:12 -08:00
Naoyuki Kanezawa
696fc5211b
set the sent flag to true
2014-03-04 22:58:01 +09:00
Naoyuki Kanezawa
db638c2276
should call callback on open
2014-03-04 22:47:31 +09:00
Guillermo Rauch
a2812f7b15
Merge branch 'master' of github.com:LearnBoost/socket.io-client
2014-03-03 22:22:28 -08:00
Guillermo Rauch
94b5387e49
fix reconnection
2014-03-03 22:21:21 -08:00