A basic socket.io implementation