-
-
Notifications
You must be signed in to change notification settings - Fork 144
Description
Describe the bug
I am currently building a collab whiteboard using SyncedStore (wrapper for yjs) and Sveltekit. So far everything works normally in Chrome. I use the y-webrtc provider for the SyncedStore and the connection is established successfully. However, if I use Firefox initially, no connection to the room is established. If I use a Chrome in parallel (Firefox next door still open in the non-synced tab) and establish the connection, Firefox also establishes the connection in parallel and synchronizes the document. I have attached a video below, which shows the exact procedure.
Expected behavior
Firefox connects to the y-webrtc provider just like Chrome when you open the page and synchronizes the document.
Environment Information
- Firefox 116.0.3
- Chrome 116.0.5845.111
Additional context
- Framework used: Sveltekit with SyncedStore
- y-webrtc
import { syncedStore, getYjsDoc } from '@syncedstore/core';
import { svelteSyncedStore } from '@syncedstore/svelte';
import { env } from '$env/dynamic/public';
import type { RetroBoard } from '$lib/types';
import { WebrtcProvider } from 'y-webrtc';
export const store = syncedStore({
board: {} as RetroBoard
});
export const svelteStore = svelteSyncedStore(store);
const doc = getYjsDoc(store);
const provider = new WebrtcProvider('retrorealm-room', doc, {
signaling: [env.PUBLIC_SIGNALING_SERVER],
filterBcConns: false
});
export const awareness = provider.awareness;