Repository navigation
fix: use shared connection timeout constant in websocket client - #727
will-lamerton merged 1 commit into
Conversation
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
No changeset foundThis 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 changesetPick 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 If this PR is docs-only or a chore that needs no release note, you can ignore this - or run |
|
Thanks for this PR @AaryanCdry - feel free to add yourself as a contributor to our website via a PR which I will approve :) https://nanocollective.org/contributors |
Summary
Replaces the hardcoded
5000ms connection attempt timeout inWebSocketClient.connect()with the sharedTIMEOUT_PROVIDER_CONNECTION_MSconstant fromsource/constants.ts.This keeps timeout values consistent across the codebase — future changes only need to happen in one place.
Changes
TIMEOUT_PROVIDER_CONNECTION_MSfrom../../../source/constants5000on line 78 with the named constantVerification
tsc --noEmit -p plugins/vscode/tsconfig.json— passesesbuildbundle — builds successfullyCloses #723