Skip to content

Commit

Permalink
use publish ws server - fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jun 25, 2024
1 parent f5530ef commit 957ab75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codemirror.next/codemirror.next.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const userColor = usercolors[random.uint32() % usercolors.length]
const ydoc = new Y.Doc()
// const provider = new WebrtcProvider('codemirror6-demo-room', ydoc)
const provider = new WebsocketProvider(
// 'wss://demos.yjs.dev/ws', // use the public ws server
'wss://demos.yjs.dev/ws', // use the public ws server
// `ws${location.protocol.slice(4)}//${location.host}/ws`, // alternatively: use the local ws server (run `npm start` in root directory)
'ws://localhost:3334',
// 'ws://localhost:3334',
'codemirror.next-demo-2024/06',
ydoc
)
Expand Down

0 comments on commit 957ab75

Please sign in to comment.