do a url detection when connect to websocket