migrate socket.io feature with main server