Some small refactorings I spotted while porting this to Node.
Refer to blocks as callbacks in the docs.
A few corrections I made while porting to Node.
Return the protocol version from the Client handler.
Refer to the draft-76 request body as 'body' rather than 'head'.
Implement the EventEmitter interface.
Remove the UTF-8 validation tests, let Autobahn deal with that.
Add more robust error handling for Hybi and Client and emit error events when the protocol goes wrong.
499 and 4999 are not the same number, James.
Various bits of housekeeping.
Convert doc files to Markdown.
Rename the module to websocket-driver.
Return false from websocket? unless the request method is GET.
Add a listener_count method to EventEmitter.
Implement EventEmitter#on as a method that calls #add_listener instead of being an alias, so that overriding the latter affects the former.
Update the changelog.
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.
Add a driver for handling TCP servers, where we don't want to make the user parse the HTTP request.
Update the readme for TCP-server drivers.
Fix some typos in the previous commit.