Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
janthurau committed Jun 22, 2023
1 parent 237fe5d commit 82c2838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/provider/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Learn more: https://github.com/BitPhinix/slate-yjs

## Multiplexing

In order to use multiplexing with TiptapCollab or Hocuspocus, you'll need to create the socket and the provider separately.
In order to use multiplexing (i.e. opening multiple documents over the same websocket connection) with TiptapCollab or Hocuspocus, you'll need to create the socket and the provider separately.
The example below will show how it works with TiptapCollab, but you can just replace `TiptapCollabProviderWebsocket` with `HocuspocusProviderWebsocket` and `TiptapCollabProvider` with `HocuspocusProvider` for use with Hocuspocus.

Note that the authentication has to be taken care of per document, thus `token` is part of the Provider, not the ProviderWebsocket.
Expand Down

0 comments on commit 82c2838

Please sign in to comment.