Skip to content

VAPI-2990 Add connectStatus fields to ReadyMetadata#12

Closed
smoghe-bw wants to merge 1 commit into
mainfrom
VAPI-2990-connect-status
Closed

VAPI-2990 Add connectStatus fields to ReadyMetadata#12
smoghe-bw wants to merge 1 commit into
mainfrom
VAPI-2990-connect-status

Conversation

@smoghe-bw

Copy link
Copy Markdown
Contributor

Summary

  • Add ConnectStatus enum (INITIATED, COMPLETED, TIMED_OUT, DENIED, CANCELED, FAILED) matching the gateway's connect status values
  • Extend ReadyMetadata with optional connect status fields: connectStatus, accountId, sessionId, from, fromType, fromTags, to, toType, toTags
  • Remove unused established event handler — connect status info is delivered via the existing ready event
  • Mirrors javascript-brtc-sdk PR #5

Test plan

  • New test: testReadyEventWithConnectStatusFields — verifies all connect status fields decode from a ready event
  • New test: testReadyEventWithoutConnectStatusFieldsStillWorks — backward compatibility when gateway sends no connect status
  • New test: testEstablishedEventHandlerNotRegistered — confirms established handler is removed
  • Updated test: testEventHandlersRegisteredOnConnect — asserts established is no longer registered
  • All 217 existing tests pass

🤖 Generated with Claude Code

Add ConnectStatus enum and extend ReadyMetadata with optional connect
status fields (connectStatus, accountId, sessionId, from/to with type
and tags) so callers can react to Connect verb outcomes. Remove the
unused "established" event handler. Mirrors javascript-brtc-sdk PR #5.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@smoghe-bw smoghe-bw requested review from a team as code owners April 27, 2026 15:36
@bwappsec

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@smoghe-bw smoghe-bw closed this May 4, 2026
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.

2 participants