mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Phones find Mornye on a computer over mDNS (bonsoir, _mornye._tcp), pair with its 6-digit PIN and keep a live session with the chosen desktop. - Pinned HTTPS: first contact records the presented certificate and checks it against info and the mDNS fingerprint; later requests and the WebSocket accept only that SHA-256. - Pairing posts the PIN proof, maps bad_proof, pairing_closed and 429 to clear errors, saves a Subsonic API-key network connection, adds it to Library and scans it. Re-pairing replaces the key in place. - LinkClientSession: Bearer JSON get/post with timeouts and LinkException mapping, WebSocket hello/welcome, backoff from 1 s doubling to 30 s, pause in the background, reconnect when discovery sees the desktop again, address updates when it moves. - LinkClientController publishes the active session through linkActiveClientProvider and rescans on catalog.changed. - Settings entry "Mornye on your computer" on Android and iOS with nearby and paired computers, PIN and manual address dialogs, forget, and local network permission, Wi-Fi and certificate warnings. - iOS NSBonjourServices and the Android multicast permission.