Skip to content

fix: use shared connection timeout constant in websocket client - #727

Merged
will-lamerton merged 1 commit into
Nano-Collective:mainfrom
AaryanCdry:fix/websocket-timeout-constant
Aug 2, 2026
Merged

will-lamerton merged 1 commit into
Nano-Collective:mainfrom
AaryanCdry:fix/websocket-timeout-constant

Conversation

@AaryanCdry

Copy link
Copy Markdown
Contributor

Summary

Replaces the hardcoded 5000 ms connection attempt timeout in WebSocketClient.connect() with the shared TIMEOUT_PROVIDER_CONNECTION_MS constant from source/constants.ts.

This keeps timeout values consistent across the codebase — future changes only need to happen in one place.

Changes

  • Imported TIMEOUT_PROVIDER_CONNECTION_MS from ../../../source/constants
  • Replaced the magic number 5000 on line 78 with the named constant

Verification

  • tsc --noEmit -p plugins/vscode/tsconfig.json — passes
  • esbuild bundle — builds successfully
  • Biome pre-commit hooks — pass

Closes #723

Replace the hardcoded 5000 ms connection attempt timeout with
TIMEOUT_PROVIDER_CONNECTION_MS from source/constants.ts so timeout
values stay consistent across the codebase.

Closes Nano-Collective#723
@github-actions

Copy link
Copy Markdown
Contributor

No changeset found

This PR does not add a changeset, so it will not appear in the changelog or trigger a release.

If the change is user-facing, add one:

pnpm changeset

Pick a bump (patch / minor / major) and write the changelog entry in our usual voice ("Added X... Thanks to @you. Closes #123."), then commit the generated .changeset/*.md file.

If this PR is docs-only or a chore that needs no release note, you can ignore this - or run pnpm changeset --empty to record that intentionally.

@will-lamerton

Copy link
Copy Markdown
Member

@will-lamerton
will-lamerton merged commit 5cf3062 into Nano-Collective:main Aug 2, 2026
1 check 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.

[Bug] WebSocket connection timeout uses a hardcoded value instead of the shared constant

2 participants