Commit Graph

82 Commits

Author SHA1 Message Date
Damien Arrachequesne
972d0aa93c [chore] Move benchmark to dev dependencies (#48) 2016-10-21 01:10:04 +02:00
Damien Arrachequesne
e8f7c32a43 [chore] Remove deprecated isarray dependency (#46)
Closes #38
2016-10-21 01:03:33 +02:00
Damien Arrachequesne
3fe95b6f67 [chore] Restrict files included in npm package (#45) 2016-10-21 00:54:52 +02:00
Damien Arrachequesne
aa187cd075 [chore] Bump zuul to 3.11.0 & zuul-ngrok to 4.0.0 (#41) 2016-10-08 21:59:36 +02:00
nkzawa
b3753c8d5e bump zuul 2016-04-11 18:10:40 +09:00
Guillermo Rauch
b5f7c7573a Release 2.2.6 2015-11-25 10:12:58 -08:00
nkzawa
3b26ac037d build matrix and ngrok v2 setup 2015-11-25 03:20:41 +09:00
Guillermo Rauch
913ddb8c6e Release 2.2.5 2015-11-21 10:45:33 -08:00
Guillermo Rauch
9e7652ee2d package: bump debug 2015-11-21 10:42:42 -08:00
Richard Gibson
009188fe98 update JSON3 to 3.3.2
Also updates zuul so `npm update` completes.

Fixes https://github.com/socketio/socket.io-client/issues/898
2015-11-19 21:37:02 -05:00
Guillermo Rauch
6455fb2761 Release 2.2.4 2015-03-03 10:34:16 -08:00
Guillermo Rauch
c4bfb06a72 Release 2.2.3 2015-02-03 16:28:11 -08:00
Guillermo Rauch
83c68c7a71 Release 2.2.2 2014-09-04 10:14:58 +02:00
Guillermo Rauch
5c551f0f52 Release 2.2.1 2014-06-20 16:56:24 -07:00
Kevin Roark
8a7e0b8b0a added benchmarking 2014-06-08 12:23:48 -07:00
Reid Burke
035fa7dded Upgrade component-emitter to 1.1.2
Switch from depending on a tarball URL to the published
component-emitter package at its latest version.

Change all references to emitter module to the new
component-emitter name.
2014-06-04 15:03:37 -07:00
Guillermo Rauch
baac860d5d Update package.json 2014-06-03 17:43:53 -07:00
Guillermo Rauch
2997b08ce3 Release 2.2.0 2014-05-30 21:11:00 -07:00
Guillermo Rauch
aaf07313c6 Release 2.1.5 2014-05-24 11:37:02 -07:00
Guillermo Rauch
993b2b0240 Release 2.1.4 2014-05-17 13:50:54 -07:00
Guillermo Rauch
aea5477c43 Release 2.1.3 2014-04-27 18:45:57 -07:00
Tony Kovanen
11edc45624 Bump zuul version 2014-04-18 03:05:57 +03:00
Guillermo Rauch
4f2916b5a6 Release 2.1.2 2014-03-06 17:37:57 -06:00
Guillermo Rauch
b8d7885a0e Release 2.1.1 2014-03-04 23:18:59 -08:00
Guillermo Rauch
3283b89c4e Release 2.1.0 2014-03-01 08:32:23 -08:00
Kevin Roark
5bea0bf41c Protocol is now class-based
Separated the encoding and decoding into two public-facing objects,
Encoder and Decoder.

Both objects take nothing on construction. Encoder has a single method,
encode, that mimics the previous version's function encode (takes a
packet object and a callback). Decoder has a single method too, add, that
takes any object (packet string or binary data). Decoder emits a 'decoded'
event when it has received all of the parts of a packet. The only
parameter for the decoded event is the reconstructed packet.

I am hesitant about the Encoder.encode vs Decoder.add thing. Should it be
more consistent, or should it stay like this where the function names are
more descriptive?

Also, rewrote the test helper functions to deal with new event-based
decoding. Wrote a new test in test/arraybuffer.js that tests for memory
leaks in Decoder as well.
2014-02-27 17:46:20 -05:00
Kevin Roark
299849b002 A faster and smaller binary parser and protocol
This is a squash of a few commits. Below is a small summary of commits.

Results from it: before the build size of socket.io-client was ~250K.
Now it is ~215K.
Tests I was doing here
(https://github.com/kevin-roark/socketio-binaryexample/tree/speed-testing)
take about 1/4 - 1/5 as long with this commit compared to msgpack.

The first was the initial rewrite of the encoding, which removes msgpack
and instead uses a sequence of engine.write's for a binary event. The
first write is the packet metadata with placeholders in the json for
any binary data. Then the following events are the raw binary data that
get filled by the placeholders.

The second commit was bug fixes that made the tests pass.

The third commit was removing unnecssary packages from package.json.

Fourth commit was adding nice comments, and 5th commit was merging
upstream.

The remaining commits involved merging with actual socket.io-parser,
rather than the protocol repository. Oops.
2014-02-26 22:31:39 -05:00
Tony Kovanen
4e8db59871 Configured npm test 2014-02-20 13:08:04 +02:00
Tony Kovanen
42cc5d2cff Added zuul config and made testing work on browsers 2014-02-20 12:18:21 +02:00
Guillermo Rauch
5efe005679 Release 2.0.0 2014-02-19 16:51:16 -08:00
Guillermo Rauch
861b60ef26 package: fix github url 2014-02-19 15:26:55 -08:00
Guillermo Rauch
86725d1e92 moved from socket.io-protocol 2014-02-19 15:26:26 -08:00