added infrastructure for socket.io support
added infrastructure for socket.io support