首页 > 解决方案 > 如何停止浏览器控制台记录实时数据库的连接状态?

问题描述

我刚刚添加了对使用 firebase 进行信号传输的 WebRTC 应用程序的连接和断开处理。

问题是当我断开互联网时,我从 firebase 收到了很多错误。

WebSocketConnection.ts:169 WebSocket connection to 'wss://s-usc1c-nss-219.firebaseio.com/.ws?v=5&ls=gg16vFmqFzo8cwtkBHygyI9EQEaV8wTm&ns=jcubic-webrtc' failed: Error in connection establishment: net::ERR_INTERNET_DISCONNECTED
BrowserPollConnection.ts:720 GET https://jcubic-webrtc.firebaseio.com/.lp?start=t&ser=49042678&cb=1&v=5&ls=gg16vFmqFzo8cwtkBHygyI9EQEaV8wTm net::ERR_INTERNET_DISCONNECTED
BrowserPollConnection.ts:720 GET https://jcubic-webrtc.firebaseio.com/.lp?start=t&ser=49042678&cb=1&v=5&ls=gg16vFmqFzo8cwtkBHygyI9EQEaV8wTm net::ERR_INTERNET_DISCONNECTED
BrowserPollConnection.ts:720 GET https://jcubic-webrtc.firebaseio.com/.lp?start=t&ser=49042678&cb=1&v=5&ls=gg16vFmqFzo8cwtkBHygyI9EQEaV8wTm net::ERR_INTERNET_DISCONNECTED
BrowserPollConnection.ts:720 GET https://jcubic-webrtc.firebaseio.com/.lp?start=t&ser=49042678&cb=1&v=5&ls=gg16vFmqFzo8cwtkBHygyI9EQEaV8wTm net::ERR_INTERNET_DISCONNECTED

当我重新连接时它可以工作,但我想摆脱这些错误。可能吗?

标签: javascriptfirebasefirebase-realtime-databasewebsocket

解决方案


推荐阅读