Commit Graph

7697 Commits

Author SHA1 Message Date
Guillermo Rauch
1727950a72 Changing write signature 2011-12-23 11:53:00 -08:00
Guillermo Rauch
884400e8d9 README Client API adjustment. 2011-12-23 11:26:15 -08:00
Guillermo Rauch
973ff5cba1 Added probe qs component to probes. 2011-12-23 11:21:53 -08:00
Guillermo Rauch
eebd224afe Added extra query parameters support to createTransport 2011-12-23 11:21:31 -08:00
Guillermo Rauch
e9d8de6e89 Changed query option type. 2011-12-23 11:20:44 -08:00
Guillermo Rauch
aade919c85 Deleted logger. 2011-12-22 21:18:58 -08:00
Guillermo Rauch
3f81f1fc57 Leverage the client parser.
In the same fashion that websocket.io leverages @einaros excellent
`ws` client module.
2011-12-22 18:58:52 -08:00
Guillermo Rauch
152fdd9864 Fixed transport initialization. 2011-12-22 15:46:40 -08:00
Guillermo Rauch
242c4b0e84 Make tests depende on the engine.io-dev build. 2011-12-22 15:24:17 -08:00
Guillermo Rauch
5d862d846d Implemented JSONP#write. 2011-12-22 15:23:56 -08:00
Guillermo Rauch
4b7e0457b2 Removed query util dependency. 2011-12-22 15:23:38 -08:00
Guillermo Rauch
013220a26c Detach form (POST) upon close in JSONP 2011-12-22 15:22:59 -08:00
Guillermo Rauch
56fc7788e4 Corrected global. 2011-12-22 15:16:52 -08:00
Guillermo Rauch
6e335dab42 Reorganized locals in JSONp transport. 2011-12-22 15:16:24 -08:00
Guillermo Rauch
8a43545557 Keep reference to sendXHR. Removed unneeded self 2011-12-22 15:15:25 -08:00
Guillermo Rauch
009715bbcb Instrumented all remaining Socket methods. 2011-12-22 15:15:06 -08:00
Guillermo Rauch
10e8f1be8b Instrumented onMessage and removed unnecessary open handler. 2011-12-22 15:14:15 -08:00
Guillermo Rauch
67f6c4c917 Added missing flush call onOpen. 2011-12-22 15:14:04 -08:00
Guillermo Rauch
dc66e2cdce Added instrumentation to Socket#probe 2011-12-22 15:13:50 -08:00
Guillermo Rauch
6b6f8486cb Listen on open Transport event. 2011-12-22 15:13:26 -08:00
Guillermo Rauch
24c73a4892 Sanity check: clear all events from previous transport in setTransport. 2011-12-22 15:12:58 -08:00
Guillermo Rauch
d791115264 Added instrumentation to createTransport. 2011-12-22 15:12:41 -08:00
Guillermo Rauch
eaff499fc8 Expose jsonp callbacks. 2011-12-22 15:12:17 -08:00
Guillermo Rauch
a9b3b9638f Fixed typo 2011-12-21 18:30:00 -08:00
Guillermo Rauch
40e7c626f0 Rename 2011-12-21 18:29:40 -08:00
Guillermo Rauch
70e64eafa7 Added expect.js 2011-12-21 18:02:23 -08:00
Guillermo Rauch
0d339536e3 Added common test files 2011-12-21 18:02:10 -08:00
Guillermo Rauch
3782162999 Changed target output ifle for build-dev 2011-12-21 17:52:58 -08:00
Guillermo Rauch
82dde3e855 Added build-dev task with instrumentation 2011-12-21 17:47:17 -08:00
Guillermo Rauch
7904c477ef Changed test title 2011-12-21 17:40:56 -08:00
Guillermo Rauch
dd72cdacb0 Added parser tests. 2011-12-21 14:54:25 -08:00
Guillermo Rauch
464d25107f Added browser test support files 2011-12-21 14:54:16 -08:00
Guillermo Rauch
b732b8b8ae Added test-browser task 2011-12-21 14:48:36 -08:00
Guillermo Rauch
46008bd6ef Added serve to package.json 2011-12-21 14:48:20 -08:00
Guillermo Rauch
95176a08be Potential speedup? 2011-12-21 14:41:58 -08:00
Guillermo Rauch
103f851120 Refactored/reposition build make task. 2011-12-21 14:41:44 -08:00
Guillermo Rauch
9c0de9b43d Renamed main test. 2011-12-21 14:34:28 -08:00
Guillermo Rauch
9fceb20d8e Allow for no packet payloads and fixed packet decoding within payloads. 2011-12-21 14:13:21 -08:00
Guillermo Rauch
e6260afe2e Disallow empty payload messages. 2011-12-21 14:12:53 -08:00
Guillermo Rauch
fc6273f8a0 Allow for empty payloads. Only for consistency, we never should send empty payloads. 2011-12-21 14:12:18 -08:00
Guillermo Rauch
736d509963 Allow for empty data (different from _no_ data). 2011-12-21 14:11:54 -08:00
Guillermo Rauch
94d305954c Avoid potentially slow error lookups and make sure you can't use constructor
as a packet type.
2011-12-21 13:29:24 -08:00
Guillermo Rauch
0531a2c9fa Improved packet decoding speed and reliability. 2011-12-21 13:28:05 -08:00
Guillermo Rauch
484ec34cc1 Cast single packet type indexes to string. 2011-12-21 13:24:36 -08:00
Guillermo Rauch
5e3a2b368f Fixed; encodePacket accepts a packet object now. 2011-12-21 11:09:24 -08:00
Guillermo Rauch
25773618fa Payload parser now operates strictly on packets. 2011-12-21 11:03:52 -08:00
Guillermo Rauch
7e635ebf49 Added comment 2011-12-21 10:59:41 -08:00
Guillermo Rauch
fb73162d25 Fixed decodePayload to assume decoded packets. 2011-12-21 10:59:11 -08:00
Guillermo Rauch
32aeda0dfa Fixed doClose JSONP override. 2011-12-21 10:58:29 -08:00
Guillermo Rauch
24d69ebb00 Fixed xhr polling doClose override. 2011-12-21 10:55:06 -08:00