Skip to content

WS wait for open on connect#10

Merged
Haakam21 merged 1 commit intomainfrom
haakam/eng-300-sdks-x402mpp
Mar 2, 2026
Merged

WS wait for open on connect#10
Haakam21 merged 1 commit intomainfrom
haakam/eng-300-sdks-x402mpp

Conversation

@Haakam21
Copy link
Contributor

@Haakam21 Haakam21 commented Mar 2, 2026

Summary by cubic

Ensure WebsocketsClient.connect waits for the socket to open before returning. This prevents race conditions when sending messages right after connect.

  • Bug Fixes
    • Call socket.waitForOpen() after super.connect.
    • Build connectArgs once, merging payment credentials or apiKey.
    • Update unit test to mock waitForOpen.

Written for commit 674d67a. Summary will update on new commits.

@Haakam21
Copy link
Contributor Author

Haakam21 commented Mar 2, 2026

@cubic

@cubic-dev-ai
Copy link

cubic-dev-ai bot commented Mar 2, 2026

@cubic

@Haakam21 I have started the AI code review. It will take a few minutes to complete.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@Haakam21 Haakam21 merged commit cfe43d8 into main Mar 2, 2026
4 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.

1 participant