add new default server - fixes #43
This commit is contained in:
parent
6460662715
commit
818140c9e4
2 changed files with 2 additions and 2 deletions
|
@ -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 => {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue