added socket.io connectivity