Justed forked a Twitter AMQP WebSocket example project by Ruben Fonseca but replaced the AMQP/RabbitMQ with Beanstalk instead. I've been playing with this fast and simple message queue called Beanstalk for a couple of days and now wanted to see if I could do some WebSocket work with it as well. You can find an introduction to Beanstalk here and some comparison to other MQs here.
The EventMachine, which is a highly scalable, event driven i/o library for ruby (and c++ and java), was a very nice surprise and was very easy to work with. Both the Twitter Streaming library, the Beanstalk client and the WebSocket server uses EventMachine so the whole example it fully asynchronous and probably quite scalable.
Check it out: http://github.com/carlhoerberg/twitter-beanstalk-websocket-example