Skip to content

feat: cross-ws (bun, deno, cloudflare, node uwebsocket)#1056

Merged
janthurau merged 12 commits intomainfrom
feat/websocket
Feb 18, 2026
Merged

feat: cross-ws (bun, deno, cloudflare, node uwebsocket)#1056
janthurau merged 12 commits intomainfrom
feat/websocket

Conversation

@janthurau
Copy link
Contributor

@janthurau janthurau commented Feb 5, 2026

Currently, Hocuspocus pretty much depends on nodejs APIs (and the ws package), which makes it impossible to use with bun or deno.

This PR changes this and moves towards supporting the web standard APIs.

Status: Needs careful testing. I already did a bit of manual testing in the playground, so at least bun it working fine now.

…sent every 30 seconds, so we can use that instead of ping/pong. ping/pong can't be added to the protocol because old provider would throw.
…rk because "url" was required without node: prefix ; this is actually coming from the "ws" package, not from our code base... The fix works by checking all require/imports, then checking if they are present in node and then prefixes them
@janthurau janthurau merged commit 2666542 into main Feb 18, 2026
6 checks passed
@janthurau janthurau deleted the feat/websocket branch February 18, 2026 20:41
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

Comments