Realtime subscription works in editor, not in live version

Hello, anyone found a solution for that matter ? Yet the subscription socket fails but even on first attempt .. any clues ?
(Browser console : WebSocket connection to ‘ws://localhost:XXXX/’ failed:)

Thank you !