James Coglan
|
9c1e260784
|
When client handshake fails, close with the right code and reason.
|
2011-12-19 00:14:06 +00:00 |
|
James Coglan
|
05bc759af6
|
Make protocol vaidation a little more strict.
|
2011-12-18 16:09:36 +00:00 |
|
James Coglan
|
e1aac5db02
|
Switch client to Sec-WebSocket-Version: 13.
|
2011-12-18 16:05:10 +00:00 |
|
James Coglan
|
fa2aff1387
|
Implement client-side subprotocol validation, and expose the protocol property.
|
2011-12-18 15:57:24 +00:00 |
|
James Coglan
|
ea635db3f4
|
Merge branch 'master' into subprotocols
|
2011-12-18 15:37:05 +00:00 |
|
James Coglan
|
b129b447a2
|
Refactor masking code.
|
2011-12-18 11:52:47 +00:00 |
|
James Coglan
|
5a0c941075
|
Explicitly return null where parser methods hit an error.
|
2011-12-17 19:23:56 +00:00 |
|
James Coglan
|
f5a78efcfd
|
Extract 255 into a constant.
|
2011-12-17 19:22:46 +00:00 |
|
James Coglan
|
f0f0bfc951
|
Inline draft-75 parsing function.
|
2011-12-17 17:23:17 +00:00 |
|
James Coglan
|
48dfb9578c
|
Merge branch 'master' into subprotocols
Conflicts:
lib/faye/websocket.js
lib/faye/websocket/protocol8_parser.js
|
2011-12-17 15:37:54 +00:00 |
|
James Coglan
|
2fa34ef097
|
Prevent stack overflows while parsing.
|
2011-12-17 15:13:09 +00:00 |
|
James Coglan
|
06f4c51a5b
|
Refactor Protocol8 parser to read in chunks rather than one byte at a time.
|
2011-12-17 14:34:22 +00:00 |
|
James Coglan
|
3fa6e43ca9
|
Move Protocol8Parser.Handshake into its own file.
|
2011-12-17 13:30:05 +00:00 |
|
James Coglan
|
a138004ec3
|
Don't pass TCP socket in when constructing a parser.
|
2011-12-17 03:06:40 +00:00 |
|
James Coglan
|
d295047393
|
Decouple TCP sockets from parsers.
|
2011-12-17 01:41:34 +00:00 |
|
James Coglan
|
6f1bc69cc0
|
Remove an unneeded local var.
|
2011-12-16 23:04:23 +00:00 |
|
James Coglan
|
c2ad20e226
|
Make Protocol8's frame() method much faster.
|
2011-12-16 23:03:23 +00:00 |
|
James Coglan
|
880398ff29
|
Merge remote branch 'majek/issue7'
|
2011-12-16 21:12:51 +00:00 |
|
James Coglan
|
918f86f58d
|
Inline some parsing methods to improve performance.
|
2011-12-16 16:45:27 +00:00 |
|
Marek Majkowski
|
2f4f1cdc8f
|
Fix #7 - random values should be 0...255 inclusive.
|
2011-12-16 15:07:20 +00:00 |
|
James Coglan
|
2dbac35b15
|
Only send Sec-WebSocket-Protocol response if there is a matching protocol available.
|
2011-12-15 20:05:03 +00:00 |
|
James Coglan
|
430b8ab7df
|
Formatting tweaks.
|
2011-12-15 19:59:28 +00:00 |
|
James Coglan
|
283b13b617
|
Initial support for user-defined subprotocol negotiation on the server side.
|
2011-12-15 00:33:23 +00:00 |
|
James Coglan
|
85ddb3f3dc
|
Remove some comments.
|
2011-12-05 09:38:10 +00:00 |
|
James Coglan
|
7e2461e153
|
Fix draft-76 sockets when running behind HAProxy.
|
2011-12-04 21:15:24 +00:00 |
|
James Coglan
|
ca3571f103
|
Don't do so many writes.
|
2011-12-03 21:37:38 +00:00 |
|
James Coglan
|
27f8f9a0f2
|
Detect closed sockets on the server side.
|
2011-12-02 10:00:25 +00:00 |
|
James Coglan
|
85a11d58d9
|
Fix broken EventTarget interface.
|
2011-11-29 12:47:28 +00:00 |
|
James Coglan
|
ac36b2bd93
|
Maintain context when dispatching an event.
|
2011-11-27 11:39:38 +00:00 |
|
James Coglan
|
aef514771a
|
Forgot to remove context argument when removing Publisher interface.
|
2011-11-27 11:38:09 +00:00 |
|
James Coglan
|
46ac8e9f5e
|
Update API reference links.
|
2011-11-27 02:19:49 +00:00 |
|
James Coglan
|
181b42d52d
|
s/subscribers/listeners/
|
2011-11-27 00:12:21 +00:00 |
|
James Coglan
|
bc0f8b4a3a
|
Remove the Publisher mixin.
|
2011-11-26 19:08:11 +00:00 |
|
James Coglan
|
8f210513fe
|
Tiny formatting change.
|
2011-11-25 00:58:53 +00:00 |
|
James Coglan
|
5f80a013b3
|
Put parser version behind a method call rather than trying to get it in the constructor.
|
2011-11-25 00:00:02 +00:00 |
|
James Coglan
|
e4d2bc6270
|
Add HTML test page, log incoming socket URL and version, and fix bugs in draft-76 parser.
|
2011-11-24 23:55:54 +00:00 |
|
James Coglan
|
163f72264f
|
Fix up the draft-76 parser.
|
2011-11-24 02:50:27 +00:00 |
|
James Coglan
|
8299ff6ab0
|
Extract WebSocket classes from Faye 0.7.
|
2011-11-24 02:07:55 +00:00 |
|