do a url detection when connect to websocket
Merge pull request #23 from ahchoo/dynamic-url

do a url detection when connect to websocket