Skip to content

fix: remove /api prefix from WebSocket URL path - #489

Merged
kojiwakayama merged 1 commit into
mainfrom
fix/ws-path-no-api-prefix
Feb 28, 2026
Merged

kojiwakayama merged 1 commit into
mainfrom
fix/ws-path-no-api-prefix

Conversation

@kojiwakayama

Copy link
Copy Markdown
Contributor

Summary

  • Remove /api prefix from WebSocket URL injected into bridge scripts
  • API's WebSocket server expects /ws/{projectId}/yjs, not /api/ws/{projectId}/yjs
  • Studio's Express proxy strips /api before forwarding, but the bridge connects directly to the API host so the path must not include the prefix
  • Bumps to v0.1.37

Context

Follow-up to PR #488. The WebSocket connection was failing with wss://api.veryfront.com/api/ws/... because the API's parseWebSocketPath() expects the first path segment to be ws, not api.

Test plan

  • deno task typecheck passes
  • deno task test passes
  • Manual: Open markdown in Studio → edit mode → WebSocket connects to wss://api.veryfront.com/ws/{id}/yjs

The API's WebSocket server expects paths like /ws/{projectId}/yjs,
not /api/ws/{projectId}/yjs. Studio's Express proxy strips /api
before forwarding, but the bridge connects directly to the API host
so the path must not include the /api prefix.

Bumps to v0.1.37.
@kojiwakayama
kojiwakayama merged commit 0d60f7a into main Feb 28, 2026
11 checks passed
@kojiwakayama
kojiwakayama deleted the fix/ws-path-no-api-prefix branch February 28, 2026 08:46
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