Skip to content

Commit

Permalink
update room names
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jun 10, 2024
1 parent 5056886 commit 054422e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions codemirror.next/codemirror.next.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ 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)
'codemirror.next-demo',
'ws://localhost:3334',
'codemirror.next-demo-2024/06',
ydoc
)
const ytext = ydoc.getText('codemirror')
Expand Down
2 changes: 1 addition & 1 deletion codemirror/codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ window.addEventListener('load', () => {
const provider = new WebsocketProvider(
'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)
'codemirror-demo',
'codemirror-demo-2024/06',
ydoc
)
const ytext = ydoc.getText('codemirror')
Expand Down
2 changes: 1 addition & 1 deletion monaco/monaco.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ window.addEventListener('load', () => {
const provider = new WebsocketProvider(
'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)
'monaco-demo',
'monaco-demo-2024/06',
ydoc
)
const ytext = ydoc.getText('monaco')
Expand Down
2 changes: 1 addition & 1 deletion prosemirror-versions/prosemirror-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ window.addEventListener('load', () => {
const provider = new WebsocketProvider(
'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)
'prosemirror-versions-demo',
'prosemirror-versions-demo-2024/06',
ydoc
)
const yXmlFragment = ydoc.get('prosemirror', Y.XmlFragment)
Expand Down
2 changes: 1 addition & 1 deletion prosemirror/prosemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ window.addEventListener('load', () => {
const provider = new WebsocketProvider(
'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)
'prosemirror-demo',
'prosemirror-demo-2024/06',
ydoc
)
const yXmlFragment = ydoc.getXmlFragment('prosemirror')
Expand Down
2 changes: 1 addition & 1 deletion quill/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ window.addEventListener('load', () => {
const provider = new WebsocketProvider(
'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)
'quill-demo-5',
'quill-demo-2024/06',
ydoc
)
const ytext = ydoc.getText('quill')
Expand Down

0 comments on commit 054422e

Please sign in to comment.