os-js / osjs-dialogs

OS.js Dialogs Module
https://manual.os-js.org/v3/
Other
4 stars 7 forks source link

Not displaying the Internet connection Lost notification in Chrome. #24

Closed maryam4s26 closed 9 months ago

maryam4s26 commented 9 months ago

hi @andersevenrud . When the server crashes or down, we receive a disconnection notification in all browsers.

image

But when the internet is interrupted, Chrome browser does not receive this notification, but we receive this notification in other browsers.

andersevenrud commented 9 months ago

This notification comes from when the websocket closes unexpectedly: https://github.com/os-js/osjs-client/blob/f4343b818274a2823ea8e28b0fbb816b2e9c23e9/src/core.js#L409 via https://github.com/os-js/osjs-client/blob/f4343b818274a2823ea8e28b0fbb816b2e9c23e9/src/websocket.js#L180

Does the websocket go down in Chrome ?

maryam4s26 commented 9 months ago

I apologize. This issue has not been opened in the right place and belongs here. I close this issue and open https://github.com/os-js/osjs-client/issues/214.

andersevenrud commented 9 months ago

This issue has not been opened in the right place and belongs here.

No worries. I can actually move these so you don't have to close and re-create. Just let me know when you need that to be done :)

maryam4s26 commented 9 months ago

Hello @andersevenrud , sorry, I created this issue before I saw your comment. :(

maryam4s26 commented 9 months ago

hi @andersevenrud .Unfortunately, I am confused and do not understand what you mean. When my internet is interrupted, Google Chrome does not show the server connection notification.