Skip to content

VAPI-2990 Add connect status callbacks for Connect verb#11

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

VAPI-2990 Add connect status callbacks for Connect verb#11
smoghe-bw wants to merge 1 commit into
mainfrom
VAPI-2990-connect-status-callbacks

Conversation

@smoghe-bw

Copy link
Copy Markdown
Contributor

Summary

  • Add ConnectStatus enum with six terminal outcomes: initiated, completed, timedOut, denied, canceled, failed
  • Extend ReadyMetadata with optional connect status fields (connectStatus, accountId, sessionId, from/fromType/fromTags, to/toType/toTags)
  • Add onConnectStatus callback to BandwidthRTCClient that fires when the gateway sends a connectStatus event
  • Remove unused established event handler (matches JS SDK PR #5)
  • Bump VERSION to 1.1.0

Test plan

  • testConnectStatusEventFiresOnConnectStatusCallback — verifies all connect status fields decode and fire callback
  • testReadyEventWithConnectStatusFields — verifies ready events with connect status data decode correctly
  • testConnectStatusEventWithEmptyData — verifies graceful handling of empty data
  • testConnectStatusEventRegistered — verifies connectStatus handler is registered on connect
  • testEstablishedEventNoLongerRegistered — verifies established handler is removed
  • CI build passes with version bump check

🤖 Generated with Claude Code

Surface connectStatus events from the gateway so SDK consumers can
react to the terminal outcome of a <Connect> verb (completed, timed out,
denied, canceled, failed). Extends ReadyMetadata with connect status
fields and adds a dedicated onConnectStatus callback.

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:33
@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 Apr 27, 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