Skip to content

feat(realtime): expose queue status and position events#86

Open
AdirAmsalem wants to merge 1 commit intomainfrom
opencode/crisp-nebula
Open

feat(realtime): expose queue status and position events#86
AdirAmsalem wants to merge 1 commit intomainfrom
opencode/crisp-nebula

Conversation

@AdirAmsalem
Copy link
Contributor

@AdirAmsalem AdirAmsalem commented Feb 18, 2026

Summary

  • Reapply queue-status support from PR lucy demo sdk  #71 on top of current main realtime architecture.
  • Add websocket status and queue_position message handling through WebRTC connection and realtime client events.
  • Expose optional onStatus and onQueuePosition connect callbacks, and add unit tests covering both event and callback flows.

Validation

  • pnpm format
  • pnpm test tests/unit.test.ts
  • pnpm typecheck
  • pnpm build

Note

Low Risk
Additive event/callback plumbing and type updates with unit coverage; low risk aside from potential minor compatibility impact for consumers relying on strict event typings.

Overview
Surfaces server queue updates end-to-end in realtime mode by adding websocket message types for status and queue_position, wiring them through WebRTCConnection’s emitter, and exposing them from RealTimeClient as new status and queuePosition events.

connect() now accepts optional onStatus and onQueuePosition callbacks (validated via zod) that fire alongside event emission, and unit tests were added to cover both the event-based and callback-based flows.

Written by Cursor Bugbot for commit 7af30d7. This will update automatically on new commits. Configure here.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 18, 2026

Open in StackBlitz

npm i https://pkg.pr.new/DecartAI/sdk/@decartai/sdk@86

commit: 7af30d7

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

Comments