I don't have the code handy at the moment but I was using ruby with this socket.io gem 'socket.io-client-simple'
I was able to connect, join a game, send chat messages, just couldn't stay connected.
I basically just converted the JS tutorial on the site to ruby style.