You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix presence and voice state race condition on WebSocket connect
The $effect safety net in +layout.svelte could trigger websocket.connect()
during auth.init() (when session is set but fetchDenUser() is still awaiting),
causing presence_initial and voice_state_initial messages to arrive before
any listeners were registered, silently dropping them.
Fix by registering all global WebSocket listeners (presence + voice state)
at the top of onMount before auth.init(), and guarding the $effect with
a ready check to prevent premature connections.