Skip to content

feat(realtime): default realtime base URL to wss://api.decart.ai - #225

Merged
AdirAmsalem merged 1 commit into
mainfrom
conductor/api-2128-api3-api-sdk
Oct 14, 2026
Merged

AdirAmsalem merged 1 commit into
mainfrom
conductor/api-2128-api3-api-sdk

Conversation

@AdirAmsalem

@AdirAmsalem AdirAmsalem commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The realtime WebSocket endpoint is served from api.decart.ai, the same host as the REST API, so the SDK no longer needs a separate default hostname for it.

  • packages/sdk/src/create-client.ts: realtimeBaseUrl now defaults to wss://api.decart.ai (was wss://api3.decart.ai). The option is unchanged and still overrides the default.
  • packages/sdk/tests/realtime.unit.test.ts, packages/sdk/index.html, examples/ws-signaling-proxy (src/index.ts, test/upstream-url.test.ts, .env.example, README.md), examples/sdk-core/realtime/custom-base-url.ts: fixtures, placeholder and docs that stated the old default.
  • api3.decart.ai keeps working for clients that set it explicitly. packages/proxy already used https://api.decart.ai.

Verification

  • packages/sdk: pnpm test (384 passed), pnpm lint, pnpm format:check, pnpm typecheck pass.
  • examples/ws-signaling-proxy: pnpm test (4 passed), pnpm lint, pnpm typecheck pass.

api.decart.ai is now a direct Route53 geolocation record identical to
api3.decart.ai (no CloudFront in front), so the realtime WebSocket
default no longer needs a separate hostname. The realtimeBaseUrl option
and the DECART_BASE_URL env var in the ws-signaling-proxy example keep
working unchanged. api3.decart.ai keeps answering for existing clients;
it is just no longer the default or documented hostname.

Part of https://linear.app/decart/issue/API-2128
@pkg-pr-new

pkg-pr-new Bot commented Oct 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@decartai/sdk@225

commit: 7bde3b1

@AdirAmsalem
AdirAmsalem merged commit 830b474 into main Oct 14, 2026
5 checks passed
@AdirAmsalem
AdirAmsalem deleted the conductor/api-2128-api3-api-sdk branch October 14, 2026 08:58
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