Commit Graph

44 Commits

Author SHA1 Message Date
Damien Arrachequesne
d389bb93e4 docs: rework of the protocol documentation 2020-10-02 12:06:26 +02:00
Guillermo Rauch
116e023b48 Merge pull request #6 from kevin-roark/add/new-protocol-description
Updated Readme for version 3
2014-03-24 15:49:56 -03:00
Kevin Roark
8b75c22bba Protocol now reflects the latest parser implementatation.
Including 'decoded' events, Decoder and Encoder instances, Decoder.add,
etc.
2014-03-24 14:46:32 -04:00
Kevin Roark
2f526f7a68 Updated Readme for version 3
Version 3 is the protocol that supports the newest binary-handling
parser.
2014-02-26 21:24:45 -05:00
Guillermo Rauch
53f9dce1a1 Merge branch 'master' of github.com:LearnBoost/socket.io-protocol
Conflicts:
	index.js
2014-02-26 14:59:48 -08:00
Guillermo Rauch
9249b76e40 Merge pull request #4 from kevin-roark/fix/global-buffer-check
Added a check for global.Buffer before .isBuffer
2014-02-24 17:49:59 -08:00
Kevin Roark
bc162313a1 Added a check for global.Buffer before .isBuffer
Need this check for the future where we remove the browserify insertion
of Buffer. It is also cleaner to check, I believe.
2014-02-24 20:33:31 -05:00
Guillermo Rauch
504996417a updated readme and moved parser out 2014-02-19 15:12:47 -08:00
Guillermo Rauch
10e2f12ef9 Merge pull request #3 from brishin/add/binary-support
Add/binary support
2014-02-18 15:00:58 -08:00
Kevin Roark
7f4ad41bca merged new dependencies into upstream 2014-02-18 17:40:27 -05:00
Kevin Roark
26c65aa4a4 Added browser field to package to reduce build
Also made some stylistic changes based on guille's comments on PR
so far.
2014-02-18 17:12:06 -05:00
Guillermo Rauch
c86ea6d9c6 Merge pull request #2 from HaykoKoryun/patch-1
created .npmignore
2014-02-18 13:19:36 -08:00
Kevin Roark
27f872754e added binary info to docs 2014-02-18 11:18:58 -05:00
Kevin Roark
98067423ab better msgpack browser module 2014-02-13 00:42:29 -05:00
Kevin Roark
a60fd25ee9 Base64 decoding support
Added a function that takes the base64 encoding of our event packets and
decodes them into packet json with correct type, namespace, and data args,
where data args are defined as [eventName, {base64: true, data: base64string}].
Then we leave it up to the user to handle something where base64 is true.

This bit of code is only relevant for very old browsers.
2014-02-12 18:05:46 -05:00
Kevin Roark
2ad8c4ab4f using isarray 2014-02-12 03:56:42 -05:00
Kevin Roark
0d457ad531 updated debug 2014-02-12 03:04:24 -05:00
Guillermo Rauch
361429b076 Release 1.1.2 2014-02-11 10:14:33 -08:00
Guillermo Rauch
8fd1348336 package: bump json3 to fix IE6-7 2014-02-11 10:13:17 -08:00
Guillermo Rauch
3e972eb423 Release 1.1.1 2014-02-10 16:06:23 -08:00
Guillermo Rauch
e7f3b5fe40 package: bump debug to fix browserify issues 2014-02-10 16:04:42 -08:00
Kevin Roark
589791df3e Added support for reading File objects
Uses the same code as the Blob stuff before (fileReader can take a
Blob or File, and make an ArrayBuffer from either).

Browsers can now directly pass file handles because why not, probably
more useful than blobs.
2014-02-10 03:50:00 -05:00
Kevin Roark
3e561290ce Added Blob support and made encoding async
In order to add Blob support to Socket.IO (part of the larger binary
support), the encode function was made asynchronous (it now takes a
callback) because blobs are converted to ArrayBuffers via an
async FileReader method.

Tests were also added to test the encoding and decoding of Buffers and
ArrayBuffers. The reason there is a new special test method to test
encoded vs decoded ArrayBuffers is that decoded ArrayBuffers in node
don't have the slice function (it is native code that can't be
transmitted over msgpack). Not sure how big of an issue this is.

Because of this new async, we need to now worry about buffering, etc.
Ideally this would all be engine.io level, but dang blobs.

Blob support is very close to file support -- update on that soon.
2014-02-09 14:49:22 -08:00
Kevin Roark
6c22a75cf9 browser style msgpack 2014-02-08 17:49:27 -08:00
Kevin Roark
95a2a4bd5d replaced custom binary encoding with msgpack 2014-02-08 14:29:06 -08:00
Kevin Roark
e374341a56 initial binary support encoding 2014-02-08 14:11:18 -08:00
Guillermo Rauch
eeb373d2c8 Release 1.1.0 2013-12-25 15:59:41 -03:00
Guillermo Rauch
eb6930f8d5 package: pin versions 2013-12-25 14:28:25 -03:00
Guillermo Rauch
656e224f7c index: use json3 2013-12-25 14:17:11 -03:00
Guillermo Rauch
2b27ff2f2e package: add json3 dep 2013-12-25 14:16:40 -03:00
Hayko Koryun
4f850be846 created .npmignore
created `.npmignore` to additionally ignore the `test` folder for __production__
2013-12-23 05:09:02 -08:00
Guillermo Rauch
8d0c482d1e Merge pull request #1 from sam-github/repository_in_package_json
Put git repository in package.json
2013-06-17 14:01:08 -07:00
Sam Roberts
31d95b8e0d Put git repository in package.json 2013-06-17 12:38:25 -07:00
Guillermo Rauch
a92e8349f0 Release 1.0.3 2012-12-19 00:29:19 -03:00
Guillermo Rauch
344323a314 index: make sure decoded id is a Number 2012-12-18 17:16:05 -03:00
Guillermo Rauch
53dae5c6fc index: added instrumentation through debug 2012-12-18 17:09:33 -03:00
Guillermo Rauch
f19131bfb0 Release 1.0.2 2012-12-18 16:31:38 -03:00
Guillermo Rauch
da048ee1bd index: allow for falsy values in id and data 2012-12-18 15:44:23 -03:00
Guillermo Rauch
f324fca41d Release 1.0.1 2012-12-10 17:37:18 -03:00
Guillermo Rauch
456b65a8ae Release 1.0.1 2012-12-10 17:34:24 -03:00
Guillermo Rauch
74e5b62029 *: fix version 2012-12-09 21:05:29 -03:00
Guillermo Rauch
c44b059749 Readme: improve 2012-12-09 20:29:31 -03:00
Guillermo Rauch
8fae6bf6b6 *: travis 2012-12-09 20:28:40 -03:00
Guillermo Rauch
38cb105b62 *: initial component 2012-12-09 20:25:37 -03:00