javascript - 如何停止浏览器控制台记录实时数据库的连接状态?
问题描述
我刚刚添加了对使用 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
当我重新连接时它可以工作,但我想摆脱这些错误。可能吗?
解决方案
推荐阅读
- javascript - Javascript -> symfony 控制器请求
- python - Python async functions
- c - 如果每个需要的库都包含在我的 main 中,我是否需要在具有函数实现的文件中 #include 任何内容?
- python - Python正则表达式从具有各种结构的文件中提取数据
- javascript - 在使用 Scully 的现有应用程序上生成角度静态 html 时出错
- c - 在格式规范之前使用逗号。在 C 中的 scanf 中?
- javascript - 如何在 PhpStorm 的 JavaScript 中启用 Emmet?
- python - PySide2:AttributeError:“NoneType”对象没有属性“objectName”
- python - 测试 SQLAlchemy 会话是否已关闭
- junit5 - 重新运行失败的测试junit5黄瓜