Commit Graph

65 Commits

Author SHA1 Message Date
Tony Kovanen
aa865b921a Use travis matrix for better test runs 2014-12-03 21:37:15 +02:00
Tony Kovanen
b72c7f1530 Merge pull request #34 from divdavem/phantomJS
Avoid sending Blobs on PhantomJS (as on Android)
2014-10-06 12:40:17 +03:00
ddivernois
d2e1e94ef5 Avoid sending Blobs on PhantomJS (as on Android)
Uploading a Blob with PhantomJS does not work correctly, as reported here:
https://github.com/ariya/phantomjs/issues/11395
2014-10-06 11:13:11 +02:00
Tony Kovanen
b10666cf94 Test that utf8 encoding is not on by default but can be switched on manually. 2014-07-17 01:21:41 +03:00
Guillermo Rauch
859338a4ae Release 1.1.0 2014-07-16 15:17:49 -07:00
Guillermo Rauch
e390624a39 Merge pull request #31 from rase-/fix/double-encode
Don't UTF-8 encode packets unless asked.
2014-07-16 15:16:59 -07:00
Tony Kovanen
95840ca6b6 Don't UTF-8 encode packets unless asked.
Still done in payload encoding for polling, but no need with WebSockets since it deals with UTF-8 itself.
2014-07-17 00:54:00 +03:00
Guillermo Rauch
952b466993 Release 1.0.8 2014-07-16 11:14:19 -07:00
Guillermo Rauch
1e26a69e4f adjust protocol revision. fixes #30 2014-07-12 21:01:22 -07:00
Guillermo Rauch
ff9cafb5fb Merge pull request #29 from nkzawa/patch-2
Handle invalid utf8 errors gracefully
2014-06-29 11:07:22 -07:00
Naoyuki Kanezawa
4dc1a13750 handle invalid utf8 errors gracefully 2014-06-29 18:22:53 +09:00
Tony Kovanen
b9e3d19987 Merge pull request #28 from rase-/fix/memory-leak-on-browser
Fix memory leak on browser as well
2014-06-25 23:28:04 +03:00
Tony Kovanen
4ff516b94a Adjust test to use proper data types and to only run for supporting browsers when testing the memory leak fix 2014-06-25 10:17:56 +03:00
Tony Kovanen
0cec2433b2 Fix memory leak on browser
Will exit with an error packet if the packet length string doesn't contain the value 255 in binary packets.
2014-06-25 06:32:05 +03:00
Guillermo Rauch
7e6da5461b Release 1.0.7 2014-06-24 15:21:18 -07:00
Guillermo Rauch
ca02f2bfad add comment per @christophwitzko 2014-06-24 15:20:18 -07:00
Guillermo Rauch
4f8dc74ff5 remove .DS_Store 2014-06-24 15:19:36 -07:00
Guillermo Rauch
93a415b38c Merge pull request #27 from christophwitzko/patch-memory-leak
fix decodePayloadAsBinary memory leak
2014-06-24 15:18:09 -07:00
Christoph Witzko
d41f8e06da fix decodePayloadAsBinary memory leak 2014-06-24 23:49:57 +02:00
Guillermo Rauch
66503b5ad5 fix readme (fixes #26) 2014-06-22 10:47:13 -07:00
Roman Shtylman
79a1ac0398 README: use svg badges 2014-06-06 17:21:57 -04:00
Roman Shtylman
5f889a682f README: change badge organization to Automattic 2014-06-06 17:21:26 -04:00
Guillermo Rauch
5ac8af3e4a Release 1.0.6 2014-05-30 12:16:54 -07:00
Guillermo Rauch
c396acffa6 Merge branch 'master' of github.com:LearnBoost/engine.io-parser 2014-05-30 12:00:09 -07:00
Guillermo Rauch
1b8e077b22 Merge pull request #24 from rase-/fix/utf8
Fix utf8 encoding for binary payloads.
2014-05-30 11:59:47 -07:00
Tony Kovanen
37ede5ffdd Add parser encode/decode test with long dash 2014-05-30 16:20:36 +03:00
Tony Kovanen
2da2fbbabc Don't use the already deprecated binary buffer encoding 2014-05-30 16:04:38 +03:00
Tony Kovanen
067e286d2b Use plain binary encoding for byte length since we're now using utf8.js 2014-05-30 14:15:27 +03:00
Guillermo Rauch
13cbe34fbc index: prevent inaccurate length for utf8.js-encoded strings 2014-05-22 01:26:56 -07:00
Guillermo Rauch
7fe6f0f63e Release 1.0.5 2014-05-06 06:31:05 -04:00
Guillermo Rauch
086e366095 Merge pull request #20 from joeybaker/patch-1
Don't pass too many arguments
2014-05-05 18:18:18 -04:00
Joey Baker
b0e75f94c4 Don't pass too many arguments
`.apply()` has a max argument length which was easily exceeded by a large buffer. This makes more calls to `String.fromCharCode` but is guaranteed not to throw a `RangeError`.

More on max argument size: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply#Using_apply_and_built-in_functions
2014-05-05 15:02:08 -07:00
Guillermo Rauch
371e940355 Merge pull request #19 from rase-/quirky-strings
Encode strings with utf8.js to support multibyte strings
2014-04-30 10:16:41 -07:00
Guillermo Rauch
81f93af215 Merge pull request #17 from lpinca/update/base64-arraybuffer
package: bump `base64-arraybuffer` to `0.1.2`
2014-04-29 20:34:20 -07:00
Guillermo Rauch
dcccf58dcb Merge pull request #16 from get/license
Add MIT license file and update readme
2014-04-29 18:09:20 -07:00
Tony Kovanen
52bc2f8c03 Encode strings with utf8.js to support multibyte strings 2014-04-30 01:23:35 +03:00
Luigi Pinca
b4e7c610b3 package: bump base64-arraybuffer to 0.1.2 2014-04-24 15:13:36 +02:00
GK
5f5eb31edc added MIT license file and updated readme 2014-04-22 19:44:01 -04:00
Guillermo Rauch
739e412b20 Merge pull request #15 from rase-/bump/zuul
Bump zuul version
2014-04-17 17:05:33 -07:00
Tony Kovanen
ad03afaa36 Bump zuul version 2014-04-18 03:01:48 +03:00
Guillermo Rauch
2d6c0000f2 Release 1.0.4 2014-04-13 12:05:48 -07:00
Guillermo Rauch
60c8596a51 Merge pull request #12 from nkzawa/patch-0
Fix encodePayloadAsBinary method encodes packets to base64
2014-04-10 10:42:14 -07:00
Guillermo Rauch
c4a35bc536 Release 1.0.3 2014-04-10 06:06:08 -07:00
Naoyuki Kanezawa
14728f9a77 fix encodePayloadAsBinary method encodes packets to base64 2014-04-02 00:41:40 +09:00
Guillermo Rauch
8b2df0b237 Merge pull request #11 from binlain/master
Fix length calculation when encoding as binary
2014-03-26 11:02:20 -03:00
binlain
395ff6f86f Fix length calculation when encoding as binary 2014-03-26 00:11:02 +01:00
Guillermo Rauch
e87f52c656 Release 1.0.2 2014-03-16 13:45:04 -03:00
Guillermo Rauch
2d9b4551fb Merge pull request #8 from rase-/add/android-test
Added android to zuul browsers
2014-03-16 12:56:23 -03:00
Tony Kovanen
112c37966b Encoding binary as ArrayBuffer for android, because blob data is sent as empty payload 2014-03-16 14:28:04 +02:00
Tony Kovanen
0609fa1ff9 Added android to zuul browsers 2014-03-16 02:31:15 +02:00