123 Commits

Author SHA1 Message Date
James Coglan 2055461ad5 Remove IOException from Java extension. 2012-03-05 01:02:20 +00:00
James Coglan fed630647d Remove java.lang.System import. 2012-03-04 23:54:17 +00:00
James Coglan 2f148eb8bf Put jar file explicitly in the gemspec so that gem will not build without it. 2012-03-04 23:45:42 +00:00
James Coglan 9410f1ce17 Catch exceptions from server-side connections closing on JRuby. 2012-03-04 23:37:13 +00:00
James Coglan 06de5b2b8d Pick compile task based on the platform. 2012-03-04 23:29:41 +00:00
James Coglan 514bb83aaa Include jar file in the gem. 2012-03-04 23:27:22 +00:00
James Coglan 213d5f0573 Depend on rake-compiler on all platforms. 2012-03-04 23:18:12 +00:00
James Coglan 83059e59b1 Rewrite masking function in Java for JRuby. 2012-03-04 23:16:02 +00:00
James Coglan 10d85183c9 Merge branch 'master' into jruby 2012-03-03 15:47:55 +00:00
James Coglan 6c2c068761 Use rack_response in the test server. 2012-03-03 15:47:47 +00:00
James Coglan 6a415f8925 Fix tests on MRI. 2012-03-03 15:40:07 +00:00
James Coglan 890646e565 Catch NullPointerException from send_data when a socket closes on JRuby. 2012-03-03 15:33:30 +00:00
James Coglan 0f74259dc8 Adjust tests on JRuby. 2012-03-03 15:31:00 +00:00
Jon Leighton 73479a87c6 Support JRuby without a C extension. Closes #5. 2012-03-02 23:21:06 +00:00
James Coglan bf97ebedf4 Bump version to 0.4.1. 0.4.1 2012-02-26 19:02:18 +00:00
James Coglan ab0da1f8b1 Use the encoding API on Ruby 1.9 to validate UTF-8. Fixes problem loading UTF-8 regex when -Ku flag is used. 2012-02-23 01:28:38 +00:00
James Coglan d4b589d4dd Treat numbers as strings when calling Socket#send. 2012-02-16 23:15:59 +00:00
James Coglan c5f34d6c08 Whitespace change to make Travis rebuild. 2012-02-13 12:41:20 +00:00
James Coglan 288657ce83 Bump version to 0.4.0. 0.4.0 2012-02-13 09:17:37 +00:00
James Coglan c54b120d8a Make immediate send on EventSource work. 2012-02-13 00:16:09 +00:00
James Coglan 840a118cd5 Only send EventSource ping messages if the user specifies an interval, for symmetry with WebSocket. 2012-02-12 23:53:32 +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 b22275ba47 Expose ping API for EventSource. 2012-02-11 14:06:01 +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 aa0f52271b Show build status in the readme. 2012-02-08 21:59:38 +00:00
James Coglan 66f12bdbfe Set encoding correctly. 2012-02-08 21:54:34 +00:00
James Coglan 1df9583f31 Make shared examples load first. 2012-02-08 21:53:05 +00:00
James Coglan 2f5dd08d51 Travis CI configuration. 2012-02-08 21:38:51 +00:00
James Coglan 16f01f2a3a Bump em-rspec. 2012-01-29 14:11:30 +00:00
James Coglan 6c1e2d46e2 Bump version to 0.3.0. 0.3.0 2012-01-13 21:46:05 +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 8792e7c6eb Document the :retry and :ping options for EventSource. 2012-01-12 01:42:08 +00:00
James Coglan 031e885e6a Periodically send 'ping' frames to keep the EventSource connection open. 2012-01-12 01:23:47 +00:00
James Coglan 90f3884a4b Make sure EventSource retry is written as an integer. 2012-01-12 01:10:22 +00:00
James Coglan 44bf2c6e71 Preserve exact line delimiters when framing EventSource messages. 2012-01-12 01:00:20 +00:00
James Coglan ba7e011631 Add EventSource documentation. 2012-01-12 00:22:47 +00:00
James Coglan b7ae87db02 Remove underscores from a couple methods. 2012-01-12 00:03:34 +00:00
James Coglan 4bb4b25063 Take _ out of EventSource source path. 2012-01-12 00:00:08 +00:00
James Coglan 2b6270b7bf Replace EM::Connection#web_socket with #socket_stream. 2012-01-11 23:57:12 +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 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