alex-saunders/glicky

Display notification on socket disconnect/failure

開放

#21 建立於 2019年4月20日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (23 個分叉)batch import
good first issuehacktoberfest

倉庫指標

星標
 (819 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Currently, if the socket connection between the client & server dies, everything starts to silently fail and the user is given no indication of what is going on (apart from an error in the console). It would be good to alert the user via notification that the connection has failed (and maybe when they click the notification, it would attempt to reconnect to the server?).

I think using the browser's native notifications (like with the outdated dependencies notification) would suffice, there shouldn't be a need to create our own notification component/UI.

貢獻者指南