After a very productive week SocketStream 0.3 (alpha3) has just been pushed to Github.
This is a major step forward towards a stable release, bringing with it a killer new feature: the ability to share sessions between HTTP (Connect apps) and Websockets for the first time.
This change also provides a perfect foundation for us (or others) to build RESTful APIs, handle file uploads, and other HTTP enhancements in the future. This has been achieved by using the Connect Session Store in SocketStream instead of our own custom implementation. This has the fortunate side effect that any Connect Session Store (e.g. connect-redis or connect-riak) can now be used with SocketStream.
Alpha3 also means a few breaking changes as we move towards an API which feels better to work with. The biggest change is around websocket middleware. Middleware files are now defined in /server/middleware as we intend to make this available to other websocket responder types (think models) in the future.
To upgrade your existing 0.3 project to the new format just run this line in your shell:
mv server/rpc/middleware server && mv server/rpc/actions/* server/rpc/ && rm -d server/rpc/actions
Many thanks to nponeccop and mindeavor for contributing greatly to this release.
Owen