apply socket.io