Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat(sdk): add realtime lifecycle state#27352

Open
PuneetKumar1790 wants to merge 3 commits into
directus:maindirectus/directus:mainfrom
PuneetKumar1790:fix/realtime-lifecycle-statePuneetKumar1790/directus:fix/realtime-lifecycle-stateCopy head branch name to clipboard
Open

feat(sdk): add realtime lifecycle state#27352
PuneetKumar1790 wants to merge 3 commits into
directus:maindirectus/directus:mainfrom
PuneetKumar1790:fix/realtime-lifecycle-statePuneetKumar1790/directus:fix/realtime-lifecycle-stateCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.