yjs / y-webrtc

WebRTC Connector for Yjs
MIT License
448 stars 109 forks source link

y-webrtc doesn't work on different browsers #53

Open apandagre opened 1 year ago

apandagre commented 1 year ago

Content doesn't sync between different browser, or on the same browser when using the incognito mode.

I guess I am missing some configuration or something.

Any help would be appreciated.

    // frontend code...
    const doc = new Y.Doc();
    doc.clientID = randomInt(0, 100);

    const provider = new WebrtcProvider(room, doc, {
      signaling: ["ws://localhost:4444"],
    });
    const type = doc.getText("monaco");
    const awareness = provider.awareness;

    const binding = new MonacoBinding(
      type,
      editorRef.current.getModel(),
      new Set([editorRef.current]),
      awareness
    );

signaling server - https://github.com/yjs/y-webrtc/blob/master/bin/server.js

SebastianStehle commented 10 months ago

Why is this set to "wontfix"? I have the same issue and this is a critical issue, I would say.

tiavina-mika commented 7 months ago

Is it a bug? I have the same issue

tim-hilt commented 7 months ago

Related to #63