Commit Graph

203 Commits

Author SHA1 Message Date
James Coglan edd8c14729 Remove websocket-driver submodule. 2013-05-04 19:46:55 +01:00
James Coglan 85896816e1 Trigger the open event for EventSource asynchronously. 2013-05-04 18:26:46 +01:00
James Coglan 3836948514 Make EventSource inherit from EventTarget, not API. 2013-05-04 18:21:20 +01:00
James Coglan 1ae7bf3aef Move some require calls, and bump the driver submodule. 2013-05-04 18:11:39 +01:00
James Coglan 66b13dfab7 Return false from eventsource? unless the request method is GET. 2013-05-04 18:05:43 +01:00
James Coglan a95b5bae79 Make all the ways of registering event listeners with EventTarget support the event buffering previously only supported by the onevent= methods. 2013-05-04 18:05:20 +01:00
James Coglan 8cec1e8f3a websocket-protocol is now websocket-driver. 2013-05-04 16:43:43 +01:00
James Coglan 2bd85a6d86 Convert the changelog to Markdown. 2013-05-04 15:13:35 +01:00
James Coglan 15e9d027ac Correct documentation for the version method. 2013-05-04 15:10:09 +01:00
James Coglan 3104f95ac2 Base the EventTarget module on the WebSocket::Protocol::EventEmitter module. 2013-05-04 14:44:25 +01:00
James Coglan a105f94ca3 It is not true that the connection will close if no protocol is agreed. This is not what browser clients do. 2013-05-04 14:31:08 +01:00
James Coglan 21404045ba GitHub markdown does not support ** inside of code spans. 2013-05-04 14:29:02 +01:00
James Coglan 18400f6a7e Various updates to the README for version 0.5. 2013-05-04 14:25:26 +01:00
James Coglan a0823e7488 Convert doc files to Markdown. 2013-05-04 14:00:42 +01:00
James Coglan 8c55526f40 Remove some debugging code I'd left in websocket.rb. 2013-05-03 09:16:36 +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 92fd9dd5a9 Implement hook to close EventSource on TCP disconnect. 2013-05-02 08:35:59 +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 d691a1bc28 Bump websocket-protocol, passes Autobahn. 2013-05-02 01:25:37 +01:00
James Coglan 670bb58251 Expose parser error events to the user. 2013-05-02 00:15:26 +01:00
James Coglan 14a71d38b7 Change the port used for tests. 2013-05-01 01:15:05 +01:00
James Coglan 03afdfe914 Replace supported_protos with protocols. 2013-05-01 01:04:20 +01:00
James Coglan c5ce14b702 Move logic out of the server/client classes and into the API class so the server/client just deal with getting a parser and hooking up to I/O. 2013-05-01 00:48:03 +01:00
James Coglan 5200c744a5 Bump websocket-protocol module. 2013-04-30 23:37:42 +01:00
James Coglan 0f24198b38 Migrate to new protocol event API. 2013-04-30 09:07:36 +01:00
James Coglan 7a431a2ba8 Bump websocket-protocol submodule. 2013-04-29 22:36:00 +01:00
James Coglan d12f3b8d04 Bump the websocket-protocol submodule. 2013-04-29 21:37:51 +01:00
James Coglan 15299398cf Bump websocket-protocol submodule. 2013-04-29 20:29:11 +01:00
James Coglan 115a0a9651 Some small refactorings I spotted while porting this to Node. 2013-04-29 00:15:28 +01:00
James Coglan 12dad2dd65 Bump the protocol submodule. 2013-04-28 13:59:09 +01:00
James Coglan 1ae9760ff4 s/server/rack/ in Protocol interface. 2013-04-21 18:27:55 +02:00
James Coglan 4cdea1433d Fix checks for JRbuby and Rubinius in tests. 2013-04-21 00:25:54 +01:00
James Coglan 33ad704f75 Bump websocket-protocol that implements required masking for client-sent frames. 2013-04-20 22:52:24 +01:00
James Coglan 31530e1f0a Bump websocket-protocol submodule. 2013-04-20 20:59:22 +01:00
James Coglan de524e35bf Move the submodule for websocket-protocol. 2013-04-20 17:53:39 +01:00
James Coglan 6e4bb57deb WebSocket::Protocol now uses event objects. 2013-04-20 15:28:30 +01:00
James Coglan 28431c0a3a Lean on Rack to determine if a request is secure. 2013-04-20 15:17:58 +01:00
James Coglan fa70313f84 Migrate to WebSocket::Protocol. 2013-04-20 14:23:11 +01:00
James Coglan 81bf8785f9 Replace call to parser.handshake_response with parser.start. 2013-04-19 08:57:02 +01:00
James Coglan d397316954 Migrate to newly simplified parser API. 2013-04-15 09:18:41 +01:00
James Coglan f4b693a2fd Remove parser classes from the tree. 2013-04-15 06:59:47 +01:00
James Coglan 1ac1bf27a9 Test on Ruby 2.0.0 on Travis. 2013-03-14 10:45:07 +00:00
James Coglan 2c9d2763d3 Make the Connection header case-insensitive. 2013-03-14 10:44:40 +00:00
James Coglan 39f7ef7316 Stop Bundler complaining about :rubygems. 2013-03-03 13:02:36 +00:00
James Coglan 07fb406532 Bump copyright date. 0.4.7 2013-02-15 00:02:43 +00:00
James Coglan a6b04f7b05 Bump version to 0.4.7. 2013-02-14 22:31:48 +00:00
James Coglan 344cfa4e7c Change version name for Autobahn tests. 2013-02-14 22:07:11 +00:00
James Coglan 799103fd47 Only supress headers if the response status is 101. 2013-02-13 23:40:01 +00:00
James Coglan a75060e8b7 Symbolize :rubygems in Gemfile. 2013-02-10 23:57:58 +00:00
James Coglan 0b47e6eeab Single-quote string. (Yes, I'm a pedant.) 2013-02-10 23:48:06 +00:00