feat: cross-ws (bun, deno, cloudflare, node uwebsocket)#1056
Merged
feat: cross-ws (bun, deno, cloudflare, node uwebsocket)#1056
Conversation
This was referenced Feb 5, 2026
f7cc501 to
a7ec92e
Compare
e308cf8 to
5dd8694
Compare
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, Hocuspocus pretty much depends on nodejs APIs (and the
wspackage), 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.