PWA closes the Supabase Realtime socket when switching tabs — solution with “event listener + auto-resubscribe” in WeWeb

Hello ! Any advances ?
As i said here : Realtime subscription works in editor, not in live version - #9 by Philibert

Even the fist subscription to the channel is not working (yet works in editor in weweb)
(Browser console : WebSocket connection to ‘ws://localhost:XXXX/’ failed:)
Any clues on that ?
Thank you !