Vladimir Dronnikov
01260064cf
fixed encoder
2012-01-16 12:21:41 -05:00
Vladimir Dronnikov
85bf4c05be
drop excess : in packets
2012-01-16 12:14:15 -05:00
Vladimir Dronnikov
516525afd4
parser simplified
2012-01-16 11:34:01 -05:00
Guillermo Rauch
3b558630d9
Added upgrade packet.
...
This packet gets sent by the upgrading transport that completed the
probe (ping/pong), once the client confirms that it's now considered
the main transport.
2012-01-09 09:00:40 -08:00
Guillermo Rauch
95176a08be
Potential speedup?
2011-12-21 14:41:58 -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
60983c31d0
Finished decodePayload.
2011-12-20 22:23:06 -08:00
Guillermo Rauch
0a68dd160d
Drastically simplified payload encoding.
2011-12-20 21:42:11 -08:00
Guillermo Rauch
917aae23c8
Added documentation for payload encode SPEC.
2011-12-20 21:35:51 -08:00
Guillermo Rauch
064d1872a5
Added error handling to packet decoding.
2011-12-20 21:35:34 -08:00
Guillermo Rauch
cefb25f3a9
Improved packet decoding.
2011-12-20 21:26:19 -08:00
Guillermo Rauch
ab949be7ad
Added support for stringification of data objects.
2011-12-20 21:24:33 -08:00
Guillermo Rauch
89ea5370eb
Added description of packet encoding for SPEC
2011-12-20 21:24:16 -08:00
Guillermo Rauch
2f12810778
Added pre-fabricated packet for parser errors.
2011-12-20 21:21:44 -08:00
Guillermo Rauch
ffc530613b
Clean up packet types.
2011-12-20 21:21:12 -08:00
Guillermo Rauch
bd0601a66e
Improved message types
...
- heartbeat is now a ping/pong
- probing is now a ping/pong
2011-11-27 10:29:46 -08:00
Guillermo Rauch
21b75fa15e
Initial import
2011-11-18 10:08:39 -08:00