check webSocket success or fail and some base tools