Replies: 5 comments 16 replies
-
This sounds like a power management issue by OS. I think you are using a web-browser-based window, and we know that browsers kill the WebSocket connection if no activity after 2 minutes, so, WebUI get around that by sending a ping every 30 seconds. However, now, seems like after an hour, your OS goes to sleep or something, and that make web browser cut/kill all WebSocket active connections in all web sites regardless of its active or not... therefor, all web sites need to re-connect to the server again. We need to find a way to force browser to not kill WebSocket connection. Or we need to figure out how to make WebUI distinguish between a WebSocket |
Beta Was this translation helpful? Give feedback.
-
A Quick around for you is to use WebView based window instead of web browser. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you, AlbertShown. Here is more information about my development environment. I use WebUI 2.5.0-beta.3 binary: webui-windows-msvc-x64.zip, the static version library. Now, I have started using the debug version to get more information and try your quick around. |
Beta Was this translation helpful? Give feedback.
-
Hi, I uploaded the logs: #585 |
Beta Was this translation helpful? Give feedback.
-
I have a program that opens a WebUI window and continuously calls JavaScript to update its contents. It works perfectly on my notebook, but when I run it on another notebook, I encounter "localhost connection refused" after about an hour. What could be causing this issue?
I want to work around this issue by reopening the WebUI window. However, when I call close() and sleep for 3 seconds, then call show() to reopen, I get "Access Denied". What is the correct way to reopen a window?
PS: The full message on the "Access Denied" page is:
Access Denied
You can't access this content
because it's already in use in
another window.
Thanks a lot for your help.
Beta Was this translation helpful? Give feedback.
All reactions