After some messing around we finally have a socket.io server that currently handles very simple chat functionality.