W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
若WebSocket后端出現(xiàn)錯(cuò)誤時(shí),WebSockect連接錯(cuò)誤則有可能出錯(cuò):
var ws = new WebSocket("wss://ap.fundebug.com/api/events/count");
Fundebug插件捕獲的這個(gè)錯(cuò)誤之后,開發(fā)者將受到報(bào)警,然后可以在我們的控制臺(tái)查看錯(cuò)誤詳情:
Fundebug插件捕獲的錯(cuò)誤數(shù)據(jù)如下:
{
"notifierVersion": "1.5.1",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
"locale": "zh-CN",
"url": "http://localhost:3001",
"title": "TEST",
"releaseStage": null,
"time": 1546522748886,
"type": "websocketError",
"target": {
"type": "onerror",
"url": "wss://ap.fundebug.com/api/events/count",
"timeStamp": 835.6999999959953
}
}
如果你不需要監(jiān)控WebSocket連接錯(cuò)誤,則可以將silentWebsocket屬性設(shè)為true。
if ("fundebug" in window) {
fundebug.silentWebsocket = true;
}
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: