56 Commits

Author SHA1 Message Date
James Coglan 6257b2c473 Implement SSL certificate verification, based on Faraday's implementation: https://github.com/lostisland/faraday/blob/v1.0.1/lib/faraday/adapter/em_http_ssl_patch.rb 2020-07-31 12:51:23 +01:00
James Coglan f33fd69bfd Change ruby version advertised by Autobahn client, removing the "mri-" prefix 2020-05-17 13:00:24 +01:00
James Coglan f7216863e6 Remove unnecessary rack imports from example server 2020-05-15 18:00:30 +01:00
James Coglan 664aabcd08 Formatting change: {...} should have spaces inside the braces 2019-06-11 16:18:17 +01:00
James Coglan c16c1cb7a2 Adjust how version numbers are conveyed for JRuby in the Autobahn client. 2017-08-15 20:14:05 +01:00
James Coglan a8dfd0719d Connect Autobahn WebSocket client to 0.0.0.0, not localhost, to appease whatever continues to be wrong with localhost on macOS. 2017-08-13 18:34:42 +01:00
James Coglan 14b96256de Don't require rubygems, this has not been necessary since Ruby 1.8. 2017-08-08 23:41:16 +01:00
James Coglan 2edab5e56e Make Thin listen on 0.0.0.0. Otherwise on macOS it will only receive things addressed to 'localhost', not '127.0.0.1' or '0.0.0.0'. 2017-08-06 12:03:35 +01:00
James Coglan 48315e6482 Similar to 8267fd504158b653f88d714c0910826b2e0ca813; explicitly load Puma components in example server. 2017-02-22 00:28:56 +00:00
James Coglan 02abbed909 Make changes required by progressbar 1.8. 2016-12-29 12:52:38 +00:00
James Coglan 3af32ff252 Use permessage-deflate in the client example. 2015-03-28 09:43:11 +00:00
James Coglan 2427e64633 Use an empty protocol array rather than 'null'. 2015-03-01 10:28:35 +00:00
James Coglan 828f78ae8c Add permessage-deflate support to the examples. 2014-12-06 10:52:40 +00:00
James Coglan c164b71f8d Use the proxy :connect event instead of implementing start_tls. 2014-11-08 16:46:15 +00:00
James Coglan 206929c89b Migrate to the improved websocket-driver proxy API, and add integration tests for all existing scenarios going through an http: proxy. 2014-11-06 23:41:23 +00:00
James Coglan d796a2ea78 Adjust the UA string used by the Autobahn client. 2014-10-29 08:52:43 +00:00
James Coglan c71bd69bc7 Don't wrap Thin in an EM.run block or else it refuses to respond to sigterm. 2014-10-28 09:43:42 +00:00
James Coglan d0348d923d Trailing blank lines are bad. 2014-05-17 00:32:02 +01:00
James Coglan f98cf406f1 Change a variable name in the examples. 2013-05-12 14:49:32 +01:00
James Coglan 9d21c3ddc5 Reformat the client example. 2013-05-12 14:28:21 +01:00
James Coglan bcd27547cf Implement custom header support. 2013-05-12 14:08:55 +01:00
James Coglan e4c46e633d A few formatting changes. 2013-05-05 00:00:55 +01:00
James Coglan 02d2dfc3a2 Use Bundler to load dependencies in examples. 2013-05-04 21:32:25 +01:00
James Coglan 7d4d153702 Sort our server/ruby compatibility. Now running on Puma, Thin, old and new Rainbows, and Goliath, on MRI/JRuby/RBX. 2013-05-03 09:06:48 +01:00
James Coglan bbb641fd64 Backport changes from the rack_hijack branch to support Puma and Rainbows. 2013-05-02 08:32:41 +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