Handshake-Server is a project mainly written in JAVASCRIPT and RUBY, it's free.
This is the ruby server of the Handshake project