replace socket.io with esri.request, filter url parameter with regex