add socket.io interaction