Commit Graph
79 Commits
Author SHA1 Message Date
James Coglan b7fd4c63fc Separate all EventSource lines with CR-LF. 2012-01-11 23:24:05 +00:00
James Coglan a6e556674b Implement the event:, id:, and :retry fields for EventSource, and expose the Last-Event-ID sent by the client. 2012-01-11 23:21:28 +00:00
James Coglan 0e2772bcbe Make EventSource run on Goliath. 2012-01-11 00:44:08 +00:00
James Coglan 33f16bd24d Initial pass at EventSource handler that runs on Thin and Rainbows. 2012-01-11 00:14:35 +00:00
James Coglan 1bd72e52a1 Make some adjustments to the WebSocket test page. 2012-01-11 00:13:01 +00:00
James Coglan 1de7d2d1c9 Select which adapter to load dynamically from the stored list of constants. 2012-01-10 00:26:59 +00:00
James Coglan c1a41fcdc8 Require StringIO. 2012-01-09 08:56:54 +00:00
James Coglan 247579b9cb Add running instructions to examples/config.ru. 2012-01-09 02:04:11 +00:00
James Coglan 3566e88f6a Remove some text about client versions from the README. 2012-01-09 01:52:23 +00:00
James Coglan e617fdf5ab Bump copyright year. 2012-01-08 23:08:11 +00:00
James Coglan 3a9d7a9d43 Provide API for selecting which adapter to load. 2012-01-08 22:19:48 +00:00
James Coglan 609ea17025 Document usage with Goliath. 2012-01-08 22:10:11 +00:00
James Coglan de41f1afef Minimize monkey-patching done to Rainbows. 2012-01-08 22:03:29 +00:00
James Coglan 3c78540003 Make Goliath adapter work for draft-76. 2012-01-08 21:52:51 +00:00
James Coglan 309aca6bbe Mostly working Goliath adapter. Works for Hybi both with and without HAProxy, doesn't work on draft-76. 2012-01-08 21:40:00 +00:00
James Coglan 8b24f04c21 Correct thin start command. 2012-01-08 17:53:32 +00:00
James Coglan a929e816e1 Fix a typo in README. 2012-01-07 22:06:13 +00:00
James Coglan 0f9be134c4 Reorder the docs to put command-line server APIs first. 2012-01-07 16:07:23 +00:00
James Coglan ec8500689a Fix a typo. 2012-01-07 16:00:40 +00:00
James Coglan 8686828aad Update documentation for running apps with Thin and Rainbows. 2012-01-07 15:57:43 +00:00
James Coglan 2949c0b711 Remove unnecessary coupling to Connection#write from Rainbows adapter; writing can be done through the Rack #each callback. 2012-01-07 15:26:15 +00:00
James Coglan 3157147fab Pass request body from draft-76 handshake through the Rainbows adapter. 2012-01-07 15:23:23 +00:00
James Coglan 110ac87cd2 Make Rainbows and Thin development dependencies since both are optional. 2012-01-07 14:06:26 +00:00
James Coglan 19eeb5ffd2 Include Rainbows server in automated tests. 2012-01-07 12:55:17 +00:00
James Coglan 530ce4b71d Initial pass at extracting Rainbows support from Cramp. 2012-01-07 12:25:34 +00:00
James Coglan 0cd610eef8 Correct readme on default value of WebSocket#protocol. 2011-12-21 19:47:25 +00:00
James Coglan 5df6b9efc4 Update repository location. 2011-12-21 17:06:12 +00:00
James Coglan c116498380 Add changelog. 2011-12-21 01:31:42 +00:00
James Coglan 301f259811 protocol property should be '' if not set. 2011-12-21 01:18:26 +00:00
James Coglan 8db7041a73 Fix arity error when constructing a Draft75Parser. 2011-12-21 01:16:33 +00:00
James Coglan ae43945626 Correct example page. 2011-12-21 01:13:25 +00:00
James Coglan de4fccbc94 Ignore .bundle files. 2011-12-20 22:12:56 +00:00
James Coglan 870c300608 Get rake-compiler to build the gem. 2011-12-20 21:55:18 +00:00
James Coglan 0347f5f0b8 Implement the complete frame parsing protocol for draft-75/76. 2011-12-20 20:12:37 +00:00
James Coglan 24a944e3d9 Test that parsers are not sensitive to how data is split across packets. 2011-12-19 21:40:06 +00:00
James Coglan d88e6cd7bf Rename Protocol8Parser to HybiParser. 2011-12-19 21:28:54 +00:00
James Coglan 00fa92e13c Don't use map() to generate masks. 2011-12-19 09:59:50 +00:00
James Coglan 43b9e8acdb Concat onto one array rather than creating a new one when a fragment arrives. 2011-12-19 08:58:28 +00:00
James Coglan 64f8f1ee5a Remove semicolon from example. 2011-12-19 00:25:55 +00:00
James Coglan 5d8666d75f Test WebSocket#protocol method. 2011-12-19 00:20:17 +00:00
James Coglan c97548ec8e Update README with subprotocol docs. 2011-12-19 00:17:18 +00:00
James Coglan afe1674fea Update examples with subprotocol logic. 2011-12-19 00:12:51 +00:00
James Coglan 069d9fa0b6 Add #protocol method to parsers. 2011-12-19 00:12:38 +00:00
James Coglan b7a7a643c0 Close on failed handshake with the right code. 2011-12-19 00:09:13 +00:00
James Coglan e5fa350112 Implement subprotocol negotiation. 2011-12-19 00:05:41 +00:00
James Coglan 2f9a318064 Don't use a loop to build the mask array. 2011-12-18 12:59:17 +00:00
James Coglan 092dbcbe33 No tabs. 2011-12-18 12:57:36 +00:00
James Coglan 5750e25a07 Cast mask numbers to C ints once. 2011-12-18 11:39:19 +00:00
James Coglan 204cae5126 Rake tasks for compiling the extension. 2011-12-18 11:29:33 +00:00
James Coglan 7368f4edef Include C extension in the gem. 2011-12-18 11:24:12 +00:00