Commit Graph

751 Commits

Author SHA1 Message Date
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
Guillermo Rauch
265401680d Merge pull request #633 from nkzawa/patch-3
Fix undefined packet type
2014-03-03 22:13:33 -08:00
Guillermo Rauch
502ef414a7 bunch of reconnection fixes 2014-03-03 17:32:33 -08:00
Naoyuki Kanezawa
a3ae721aae fix undefined packet type 2014-03-02 16:17:11 +09:00
Naoyuki Kanezawa
fc4cdb40e7 Merge remote-tracking branch 'upstream/master' into patch-2
Conflicts:
	test/connection.js
2014-03-02 06:22:07 +09:00
Kevin Roark
d2c8362fc6 Updated manager to reflect new class-based protocol
Main difference is the handling of parser.Decoder's 'decoded' event
and removing most of the logic that interprets the packet data from
manager, since parser handles it now.
2014-02-27 18:02:24 -05:00
Kevin Roark
67f15b16d2 Updated protocol-facing code to reflect new binary protocol
This is a squash of 6 small commits. Below is a summary of each. The gist
is that manager.js encoding and decoding portions were changed to work
with the new socket.io-protocol; this includes handling of encoding
a list of packets, and handling sequences of binary packets.

Commit 1 was the initial rewrite.

Commit 2 got all the tests passing via bug fixes.

Commit 3 updated the has-binary-data dependency and the build.

Commit 4 added nice comments.

Commits 5 and 6 updated build and engine.io dependencies respectively.
2014-02-26 13:41:51 -05:00
Kevin Roark
d5c35bb1f2 Added binary support to socket.io-client
Added changes to reflect socket.io-parser's async encoding, and use
of has-binarydata to check the event type of an event.

Next added browser tests for sending and receiving of binary data via
arraybuffers.

Then added blob tests and blob recognition.

To make blobs fully work (and Files as well), had to add packet buffering
to client so that slow-encoding blobs are still sent before other events.

I fixed a stupid bug I had added where I used the indexof module (for old
browsers) on a string somewhere instead of an array). This was causing
old IE to receive all events twice.

Old iphone tests were still failing so I updated tests to reflect that
some browsers can receive a blob but not construct them.

Finally, reduced build size by adding the "browser" field to package.json
and making browserify less confused.
2014-02-19 14:07:32 -05:00
Naoyuki Kanezawa
78f1fd152f fix a namespace connection error 2014-02-09 03:19:28 +09:00
Kevin Roark
13d34ff0b6 Should check packet.id for non-null, not 0
Like the server does!!!
2014-02-07 15:10:32 -08:00
Guillermo Rauch
c5051b67e8 fix connection test 2013-12-26 23:35:50 -03:00
Guillermo Rauch
39d5e20944 switch to browserify 2013-12-25 16:00:27 -03:00
Guillermo Rauch
c3a04f704b manager: fix reconnect attempts start 2012-12-24 20:39:28 -03:00
Guillermo Rauch
558f8b2626 socket: improve keeping track of connected state 2012-12-24 19:51:17 -03:00
Guillermo Rauch
a2f172995c manager: keep count of connected clients to close underlying transport 2012-12-24 19:51:01 -03:00
Guillermo Rauch
7ff88f80a3 socket: fix Socket#ack 2012-12-18 17:22:50 -03:00
Guillermo Rauch
1b98649bc4 socket: style 2012-12-18 17:22:14 -03:00
Guillermo Rauch
8138a4d070 socket: fix event packet encoding 2012-12-18 15:13:04 -03:00
Guillermo Rauch
bea30df54a socket: fix send message unshifting 2012-12-18 15:11:53 -03:00
Guillermo Rauch
8eb209e0cc socket: send connect packet upon open 2012-12-17 14:27:34 -03:00
Guillermo Rauch
bccc6d1ddd socket: fix packet method 2012-12-17 14:27:19 -03:00
Guillermo Rauch
df3b994242 manager: added packet method to write to engine socket 2012-12-17 14:27:07 -03:00
Guillermo Rauch
3335e3fe94 manager: let a connect timeout fire error event logic 2012-12-17 09:06:28 -03:00
Guillermo Rauch
6db3fdcf52 index: fixed multiplexing id lookup 2012-12-17 08:38:04 -03:00
Guillermo Rauch
881f284ff5 socket: remove reconnecting event 2012-12-17 08:37:10 -03:00
Guillermo Rauch
f5d6ff56d7 url: moar simplifications 2012-12-16 21:14:44 -03:00
Guillermo Rauch
0c6b0b4111 url: simplify by no longer accepting object 2012-12-16 21:13:29 -03:00