added initial socket.io support.