Skip to content

feat(sdk): add realtime lifecycle state#27352

Open
PuneetKumar1790 wants to merge 3 commits into
directus:mainfrom
PuneetKumar1790:fix/realtime-lifecycle-state
Open

feat(sdk): add realtime lifecycle state#27352
PuneetKumar1790 wants to merge 3 commits into
directus:mainfrom
PuneetKumar1790:fix/realtime-lifecycle-state

Conversation

@PuneetKumar1790
Copy link
Copy Markdown

Scope

  • Added realtime connection/authentication lifecycle tracking in the SDK
  • Added isAuthenticated() and isReady() to the realtime client
  • Emitted connected, authenticated, and ready events
  • Added lifecycle coverage tests and a changeset

Tested Scenarios

  • connect -> authenticate -> ready
  • disconnect -> reset -> reconnect
  • Verified sdk/tests/realtime.test.ts passes

Notes

  • Existing isConnected() behavior remains available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant