Auto discover for socket.io connect