42 Commits

Author SHA1 Message Date
James Coglan e568366f82 Formatting change: {...} should have spaces inside the braces 2019-06-11 16:12:52 +01:00
James Coglan bc03ce72fe Refactor the client examples, and get the TCPSocket one into a runnable state so it can be run from the command line with a URI. 2017-08-15 19:00:04 +01:00
izwick-schachter 391c3d0426 Added TCPSocket client example 2017-08-08 13:44:08 -04:00
James Coglan 8739c7966f Rename tcp_server.rb to em_server.rb. 2017-08-08 08:55:13 +01:00
James Coglan 77e46d6fce Add an example EventMachine client. 2017-08-08 08:54:50 +01:00
James Coglan ef862fd341 Serialise the FIN and RSV bits of frames correctly. 2014-12-05 19:27:39 +00:00
James Coglan 1b3f32bbc7 Trailing blank lines are bad. 2014-05-17 00:34:48 +01:00
James Coglan 467eacefd6 Parameterize the port the example server runs on. 2013-05-12 12:41:39 +01:00
James Coglan 329ce6cfb8 Check that TCP requests are actually WebSockets before proceeding. 2013-05-12 01:31:44 +01:00
James Coglan 020c094e96 Add a driver for handling TCP servers, where we don't want to make the user parse the HTTP request. 2013-05-11 19:28:59 +01:00
James Coglan 6d241a2421 Remove the examples directory, those require the I/O stack. 2013-04-05 09:15:39 +01:00
James Coglan 344cfa4e7c Change version name for Autobahn tests. 2013-02-14 22:07:11 +00:00
James Coglan 41a1968ed6 Remove trailing whitespace. 2013-02-10 22:58:09 +00:00
James Coglan a145cd9e96 Use ProgressBar while running the Autobahn client tests. 2012-11-02 22:41:12 +00:00
James Coglan 183e56c770 Don't send WS message on open from the server; this breaks the Autobahn tests. 2012-02-12 23:52:12 +00:00
James Coglan 78ceffffb7 Add ping API for server-side WebSocket connections. 2012-02-11 13:59:06 +00:00
James Coglan 8a7106e5a2 Implement safe onopen and message buffering for when the handshake is interrupted by a proxy. 2012-02-11 13:32:40 +00:00
James Coglan 6be12a06c2 Correct EventSource error handler. 2012-01-13 21:25:39 +00:00
James Coglan 88e247c923 Correct variable name in WebSocket example. 2012-01-12 22:33:12 +00:00
James Coglan e8ea111c63 Rename objects in app.rb. 2012-01-12 19:51:16 +00:00
James Coglan b7ae87db02 Remove underscores from a couple methods. 2012-01-12 00:03:34 +00:00
James Coglan 72e5b16ff9 Implement close events for EventSource. 2012-01-11 23:51:02 +00:00
James Coglan fb89891c42 Handle messages containing line breaks correctly. 2012-01-11 23:28:07 +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 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 247579b9cb Add running instructions to examples/config.ru. 2012-01-09 02:04:11 +00:00
James Coglan 3a9d7a9d43 Provide API for selecting which adapter to load. 2012-01-08 22:19:48 +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 8686828aad Update documentation for running apps with Thin and Rainbows. 2012-01-07 15:57:43 +00:00
James Coglan 530ce4b71d Initial pass at extracting Rainbows support from Cramp. 2012-01-07 12:25:34 +00:00
James Coglan ae43945626 Correct example page. 2011-12-21 01:13:25 +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 afe1674fea Update examples with subprotocol logic. 2011-12-19 00:12:51 +00:00
James Coglan 7f88e28ba5 Fix draft-76 sockets when running behind HAProxy. 2011-12-04 21:32:58 +00:00
James Coglan 4dbdef4c05 Change example back to using onmessage. 2011-11-29 21:09:08 +00:00
James Coglan 58e369fbfd Fix add_event_listener interface. 2011-11-29 13:12:58 +00:00
James Coglan 0eec6f57dd Adjust client example to get URL from the socket object. 2011-11-26 19:10:19 +00:00
James Coglan 3b83de82a0 Fix the browser test page. 2011-11-24 23:44:08 +00:00
James Coglan 2666093d03 Add HTML test page. 2011-11-24 19:11:02 +00:00
James Coglan 87cd1e875f Add SSL capability to examples. 2011-11-22 19:05:20 +00:00
James Coglan a18791b258 Add examples, which pass all the Autobahn tests. 2011-11-22 01:26:43 +00:00