Skip to content

Add WebSocket relayer state change notifications - #243

Merged
Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
louiss72:agent/relayer-state-change-218
Jul 29, 2026
Merged

Jaydbrown merged 1 commit into
conduit-protocol:mainfrom
louiss72:agent/relayer-state-change-218

Conversation

@louiss72

Copy link
Copy Markdown
Contributor

Summary

  • add StateChangeHandler / WebSocketRelayerOptions.onStateChange
  • add relayer.onStateChange(handler) for event-driven connection state transition subscriptions
  • emit transitions for connecting, connected, disconnected, reconnecting, and destroyed only when the transition changes
  • cover the public subscription API with a relayer regression test

Closes #218.

Validation

  • npm test -- src/tests/relayer-stress.test.ts -> 1 file / 13 tests passed
  • npm run build -> passed
  • npm run lint -> passed
  • git diff --check -> passed
  • npm run typecheck is blocked by an existing WalletConnect edge-case test issue unrelated to this change: chainId: undefined is not assignable with exactOptionalPropertyTypes
  • npm test is blocked by an existing pagination cursor expectation in src/tests/pagination-cursor.test.ts; the focused relayer suite passes

Payout

This is Stellar Wave / USDC-compatible. EVM/Base USDC address: 0x2f8081562ac67467d1cbd40ab3120849c1f587da.

If payment must be Stellar-native USDC, please ask for a Stellar public key before sending.

@Jaydbrown
Jaydbrown force-pushed the agent/relayer-state-change-218 branch from 90ea90b to ea8425b Compare July 29, 2026 10:26
@Jaydbrown
Jaydbrown merged commit bcec2c9 into conduit-protocol:main Jul 29, 2026
1 of 2 checks passed
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.

Enhancement: add connection state-transition notifications to WebSocketRelayer

2 participants