3Shain / Comen

📺直播用弹幕栏【原bilichat】

Home Page:https://comen.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api 服务器挂掉时不会显示弹幕

simon300000 opened this issue · comments

commented

发现如果往 api 服务器的 http 请求失败了流就断了,弹幕就不显示了
尝试修复了一下,不大清楚RxJS用法,就不直接PR了→_→
https://github.com/simon300000/BiliChat/tree/api-catchError
https://github.com/3Shain/BiliChat/compare/master...simon300000:api-catchError?expand=1

读了Rxjs的Document,似乎这样是ok的(测试也是ok的
可是会有不知道哪来的48
image

原本的状态,弹幕不会显示:
image

不知道为什么api服务器断掉的瞬间会出现个48。。。
突然关掉api服务器效果图:
image