Skip to content

Commit

Permalink
add new default server - fixes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Mar 16, 2023
1 parent 6460662 commit 818140c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as Y from 'yjs'
import { WebrtcProvider } from '../src/y-webrtc.js'

const ydoc = new Y.Doc()
const provider = new WebrtcProvider('webrtc-test', ydoc, { signaling: ['ws://localhost:4444'] })
const provider = new WebrtcProvider('webrtc-test', ydoc, { signaling: ['ws://localhost:8080'] })
const yarray = ydoc.getArray()

provider.on('synced', synced => {
Expand Down
2 changes: 1 addition & 1 deletion src/y-webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export class WebrtcProvider extends Observable {
roomName,
doc,
{
signaling = ['wss://signaling.yjs.dev', 'wss://y-webrtc-signaling-eu.herokuapp.com', 'wss://y-webrtc-signaling-us.herokuapp.com'],
signaling = ['wss://y-webrtc-eu.fly.dev'],
password = null,
awareness = new awarenessProtocol.Awareness(doc),
maxConns = 20 + math.floor(random.rand() * 15), // the random factor reduces the chance that n clients form a cluster
Expand Down

0 comments on commit 818140c

Please sign in to comment.