233 Commits
Author SHA1 Message Date
James Coglan 7b304697db Bump version to 0.2.2. 0.2.2 2013-08-04 12:23:00 +01:00
James Coglan cd53761699 Fix EventEmitter#listener_count in the case where the event type does not exist, and add EventEmitter#listners. 2013-08-04 12:11:37 +01:00
James Coglan cdd83c4c9d Bump version to 0.2.1. 0.2.1 2013-07-05 15:12:19 +01:00
James Coglan ac3bb51cbd Adjust encoding operations so that encoding is explicit at the call site, and all strings written to I/O are ASCII-8BIT. 2013-07-02 09:46:29 +01:00
James Coglan ee5fe9ec5f Messages should be queued when the client is in the 'pre-connecting' state, as the client is initially. 2013-06-06 10:25:10 +01:00
James Coglan ae84f0eaf7 Headers#inspect should call @raw.inspect. 0.2.0 2013-05-12 15:12:44 +01:00
James Coglan 8cd6ff1dde Set status and headers as soon as they are known, so they are available in case of an error. 2013-05-12 14:49:59 +01:00
James Coglan 28f8cbc7b3 Bump version to 0.2.0. 2013-05-12 14:06:50 +01:00
James Coglan be00c65ebd Make Headers#inspect do something useful. 2013-05-12 14:01:15 +01:00
James Coglan bc6accf08a A few build artifacts are now in my global gitignore. 2013-05-12 13:37:21 +01:00
James Coglan cfd2806683 Remove an unneeded instance variable. 2013-05-12 12:41:51 +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 3902b8bc4f Around here we use square brackets for arrays. 2013-05-11 23:03:17 +01:00
James Coglan b0fa32b9c5 Move a couple of tests. 2013-05-11 22:27:08 +01:00
James Coglan 074a8a2f16 Add #status and #headers methods to the Client driver. 2013-05-11 20:42:06 +01:00
James Coglan 5a7fadbcbe Add API for setting custom handshake headers. 2013-05-11 20:28:36 +01:00
James Coglan 2aac685c24 One more typo. 2013-05-11 19:47:27 +01:00
James Coglan 33f6c4c52b Fix some typos in the previous commit. 2013-05-11 19:43:47 +01:00
James Coglan 216914b85c Update the readme for TCP-server drivers. 2013-05-11 19:43:04 +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 ba696e8e2c Implement a proper streaming HTTP response parser. This makes the client-side parser more robust and also gives a way to building a driver for TCP servers. 2013-05-11 16:56:29 +01:00
James Coglan 4051554937 Update the changelog. 2013-05-04 20:46:54 +01:00
James Coglan 93dd655d6d Implement EventEmitter#on as a method that calls #add_listener instead of being an alias, so that overriding the latter affects the former. 0.1.0 2013-05-04 18:02:40 +01:00
James Coglan c9388b7627 Add a listener_count method to EventEmitter. 2013-05-04 18:00:17 +01:00
James Coglan c5526b1c09 Return false from websocket? unless the request method is GET. 2013-05-04 17:46:35 +01:00
James Coglan be1f1cdc35 Rename the module to websocket-driver. 2013-05-04 16:43:25 +01:00
James Coglan e274a521ef Convert doc files to Markdown. 2013-05-04 13:55:37 +01:00
James Coglan 9a28b3f90d Various bits of housekeeping. 2013-05-03 09:04:14 +01:00
James Coglan 86b3235e82 499 and 4999 are not the same number, James. 2013-05-02 01:25:12 +01:00
James Coglan f61a5e60f2 Add more robust error handling for Hybi and Client and emit error events when the protocol goes wrong. 2013-05-02 00:09:34 +01:00
James Coglan 38f0d2dca7 Remove the UTF-8 validation tests, let Autobahn deal with that. 2013-04-30 23:37:19 +01:00
James Coglan 7b0daf6f3c Implement the EventEmitter interface. 2013-04-30 08:53:33 +01:00
James Coglan 8855a0e720 Refer to the draft-76 request body as 'body' rather than 'head'. 2013-04-29 22:02:19 +01:00
James Coglan 8b975a0031 Return the protocol version from the Client handler. 2013-04-29 21:37:35 +01:00
James Coglan 38b19487c5 A few corrections I made while porting to Node. 2013-04-29 20:28:47 +01:00
James Coglan 080b5e3481 Refer to blocks as callbacks in the docs. 2013-04-29 07:34:09 +01:00
James Coglan 2662d43b08 Some small refactorings I spotted while porting this to Node. 2013-04-29 00:14:45 +01:00
James Coglan 1b6e521390 Replace old CHANGELOG. 0.0.0 2013-04-22 10:08:11 +02:00
James Coglan fff700d0b0 Change the gem description. 2013-04-22 10:07:03 +02:00
James Coglan b4d55643aa Set version to 0.0.0. 2013-04-22 10:05:29 +02:00
James Coglan 22e81d5303 Don't put test files in the gem. 2013-04-22 10:05:02 +02:00
James Coglan 24d3e2ec85 Change the server() method to rack(). 2013-04-21 18:25:41 +02:00
James Coglan 10da09afbd Always emit the empty string instead of nil as the closure reason in Hybi. 2013-04-20 22:04:24 +01:00
James Coglan 996afee493 Fix a couple of typos in the feature list. 2013-04-20 20:59:04 +01:00
James Coglan 12d8d8491b s/all/most/ 2013-04-20 19:51:12 +01:00
James Coglan 0997acd9f9 Document the handler.version and handler.protocol methods. 2013-04-20 19:50:20 +01:00
James Coglan 53e2d20877 Typo. 2013-04-20 19:47:26 +01:00
James Coglan bf148cda91 Rdoc doesn't like using + for code-ifying multi-word blocks. 2013-04-20 19:45:56 +01:00
James Coglan 5af19e1f1e Get wss: and ws: the right way round in the example. 2013-04-20 19:44:30 +01:00