Skip to content

using with a single websocket connection for the whole app #114

@chee

Description

@chee

hey, nik! fabulous library, i really need it.

this issue is more of a chat than an issue.

i'm wondering if there's any ideas for a strategy for using this with automerge-repo, where you have a single websocket connection for the current tab (or browser, if you use a worker) rather than the yjs style of one connection per doc.

i started hacking something together, but i tripped up on the requirement for websocketEndpoint on a per-doc basis. i'm imagining a world where i could basically wrap an automerge provider (like herb's local-first/auth) and then every doc fetched and used through that connection would be encoded and deciphered via the keys registered at init

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions