add environment detection for connect timer, because no socket event in browser env (#236)
add environment detection for connect timer, because no socket event in browser env (#236)

Change-Id: If7a8074d83fb7a97d8b3ec069baba61cc9d0c1df
node-modules/urllib,node-modules/urllib