prose-app-web icon indicating copy to clipboard operation
prose-app-web copied to clipboard

Connection is resumed way too late when macOS app recovers from sleep mode

Open valeriansaliou opened this issue 10 months ago • 3 comments

See https://www.npmjs.com/package/worker-timers

Possibly, we'd need to move the whole connection state management and WebSocket connection to a Web Worker as well.

This would fix the "sleeping app" issue in Safari/Tauri where the browser runtime requires user interaction to resume some event loop tasks, thus resuming the XMPP WebSocket connection.

valeriansaliou avatar Apr 05 '24 08:04 valeriansaliou