Guillermo Rauch
141eaef7d3
Failing test.
2012-01-16 09:49:45 -08:00
Guillermo Rauch
cc14deb5ab
Removed error packet type.
2012-01-16 09:41:51 -08:00
Guillermo Rauch
50a7e384c3
Merge pull request #5 from dvv/parser
...
parser simplified
2012-01-16 09:29:24 -08:00
Vladimir Dronnikov
fb41b18007
Merge branch 'master' of github.com:LearnBoost/engine.io-client into parser
2012-01-16 12:28:31 -05:00
Guillermo Rauch
cf57b9a01a
Empty packet data translates into empty message.
2012-01-16 09:25:34 -08:00
Guillermo Rauch
01b4802d11
Removed no longer relevant test.
2012-01-16 09:25:19 -08:00
Vladimir Dronnikov
01260064cf
fixed encoder
2012-01-16 12:21:41 -05:00
Vladimir Dronnikov
2f691d3a07
Merge branch 'master' of github.com:LearnBoost/engine.io-client into parser
2012-01-16 12:14:48 -05:00
Vladimir Dronnikov
85bf4c05be
drop excess : in packets
2012-01-16 12:14:15 -05:00
Guillermo Rauch
706f1504f4
Updated encoding format checks for new upcoming format.
2012-01-16 09:12:56 -08:00
Vladimir Dronnikov
516525afd4
parser simplified
2012-01-16 11:34:01 -05:00
Guillermo Rauch
37ad952168
Fixed 204 status on IE.
2012-01-16 08:14:00 -08:00
Guillermo Rauch
b6daf3212e
Fixed order of on and load in util.
2012-01-16 08:05:08 -08:00
Guillermo Rauch
b253c8fed5
Fixed title
2012-01-15 22:50:06 -08:00
Guillermo Rauch
5f0d2455d3
Ensured we emit the event _after_ we we call onPacket.
...
This prevents a race condition where upon `poll`, the transport
gets paused, then upon getting closed upgraded (therefore replaced)
and packets are lost!
2012-01-15 22:30:28 -08:00
Guillermo Rauch
ce02ec2aaa
Added polling data instrumentation.
2012-01-15 22:30:13 -08:00
Guillermo Rauch
2fe5b2682f
Restored correct pausing logic for polling.
2012-01-15 22:29:51 -08:00
Guillermo Rauch
53c3e90fd7
Added fix for considering 204 a success.
...
In addition, avoid recursion error with status errors.
2012-01-15 22:25:40 -08:00
Guillermo Rauch
18cbd9d3a3
Added guard for uninitialized flashsocket close attempt.
2012-01-15 22:25:23 -08:00
Guillermo Rauch
aff04b7f02
Fixed FlashWS reference
2012-01-15 22:25:14 -08:00
Guillermo Rauch
c55bde3651
Improved socket close instrumentation.
2012-01-15 22:24:21 -08:00
Guillermo Rauch
49b1fad736
Fixed Socket#probe
2012-01-15 22:24:04 -08:00
Guillermo Rauch
081e304d7d
Refactored (now passing) upgrade test.
2012-01-15 22:21:49 -08:00
Guillermo Rauch
4e8b650561
Removed test no longer valid in 0.6
2012-01-15 22:21:39 -08:00
Guillermo Rauch
2e4dcbdaba
Improve ws instrumentation
2012-01-15 22:21:26 -08:00
Guillermo Rauch
de514e6e62
Added WebSocket#onData to instrument it.
2012-01-15 22:21:03 -08:00
Guillermo Rauch
cf4691c494
Renamed ws instrumentation nsp.
2012-01-15 22:20:41 -08:00
Guillermo Rauch
44e8192ad2
Improved polling instr.
2012-01-15 22:20:27 -08:00
Guillermo Rauch
0d0ffef9d2
Improved polling instrumentation.
2012-01-15 22:19:57 -08:00
Guillermo Rauch
d6ee514fbb
Documentation and fix for .close without a fn.
2012-01-15 22:19:24 -08:00
Guillermo Rauch
86adb61f28
Ensured Socket#flush checks for buffer length.
2012-01-15 22:19:07 -08:00
Guillermo Rauch
04723dd50c
Re-implemented maybeUpgrade to consider upgrade packet.
2012-01-15 22:18:34 -08:00
Guillermo Rauch
18311196a2
Renamed Socket#upgrade to #maybeUpgrade
2012-01-15 22:17:54 -08:00
Guillermo Rauch
327aeee7bf
Introduced upgradeTimeout.
2012-01-15 22:10:33 -08:00
Guillermo Rauch
b834862454
Removed no-longer needed callback.
2012-01-14 15:07:06 -08:00
Guillermo Rauch
5bc9c7e132
Made client buffer/flush work more like server.
2012-01-14 13:52:24 -08:00
Guillermo Rauch
54791e61e2
Fixed closing of polling transport callback.
2012-01-14 13:46:20 -08:00
Guillermo Rauch
cb22f219d7
Renamed close readyState to closed.
2012-01-14 11:43:33 -08:00
Guillermo Rauch
b2c249e7ef
Slown down some tests since they were pretty extreme.
...
The blocking `console.error` behavior of debug was making the tests not
pass sometimes.
2012-01-14 11:36:16 -08:00
Guillermo Rauch
5f0d7fb7e9
Removed noop packet test.
2012-01-14 10:40:23 -08:00
Guillermo Rauch
a23405bfea
Fixed close packet sending.
2012-01-14 10:36:44 -08:00
Guillermo Rauch
a6da7ef0ba
Reset slow threshold
2012-01-14 10:22:41 -08:00
Guillermo Rauch
c0bb8c740d
Started leveraging mocha bail.
2012-01-14 09:42:39 -08:00
Guillermo Rauch
aab09b04bc
Refactored server tests with listen shortcut and sprintf.
2012-01-14 09:42:18 -08:00
Guillermo Rauch
fdd4faa180
Refactored tests with new listen, sprintf & fixed potential leaks of errors to different tests.
2012-01-14 09:41:44 -08:00
Guillermo Rauch
3f3da53491
Added listen utilit for ephemeral ports listening & sprintf.
2012-01-14 09:41:10 -08:00
Guillermo Rauch
9630a4fe69
Added sprintf util for testing.
2012-01-14 09:37:39 -08:00
Guillermo Rauch
3a0759fb89
Cleaned up WebSocket#send.
2012-01-14 09:37:14 -08:00
Guillermo Rauch
88cfa04de5
Implemented WebSocket#writable.
2012-01-14 09:36:32 -08:00
Guillermo Rauch
15d420d6b2
Added instrumentation to polling payloads.
2012-01-14 09:36:09 -08:00