Posted By: Eric Wong
Date: 2009-12-21 19:34
Summary: Sunshowers 0.2.0
Project: Rainbows!
Sunshowers is a Ruby library for Web Sockets. It exposes an easy-to-use API that may be used in both clients and servers. On the server side, it is designed to work with Rack::Request and Rainbows! concurrency models that expose a synchronous application flow. On the client side, it may be used as a standalone wrapper for IO-like objects.
* http://rainbows.rubyforge.org/sunshowers/ * sunshowers@librelist.com />* git://git.bogomips.org/sunshowers.git
Changes:
The ws_handshake! method now accepts optional headers, as cookies should be settable during the handshake process. Header rules are exactly the same as normal Rack response headers and typically a Hash with String keys and newline-delimited values.
Sunshowers::IO#gets now discards binary frames as dictated by the current IETF draft specification (66). Setting Sunshowers::IO#keep_binary=true will revert to the old (and hopefully future) behavior on a per-object basis. Do not expect the +keep_binary+ member of Sunshowers::IO Struct to become part of the a stable API. |
|