socket.io integration work in progress