Compare commits

..

No commits in common. "048022c5b02d316b3b7e077e057bfd06bd73777d" and "03f01903bd792a4546df6a4faf7b12325b5126f9" have entirely different histories.

4 changed files with 1 additions and 14 deletions

View file

@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Schreiben</title>
</head>

View file

@ -35,7 +35,6 @@
"nanoid": "^4.0.1",
"navaid": "^1.2.0",
"regexparam": "^2.0.1",
"y-indexeddb": "^9.0.9",
"y-prosemirror": "^1.2.0",
"y-protocols": "^1.0.5",
"y-webrtc": "^10.2.4",

View file

@ -24,7 +24,6 @@ specifiers:
tslib: ^2.5.0
typescript: ^4.9.3
vite: ^4.1.0
y-indexeddb: ^9.0.9
y-prosemirror: ^1.2.0
y-protocols: ^1.0.5
y-webrtc: ^10.2.4
@ -35,7 +34,6 @@ dependencies:
nanoid: 4.0.1
navaid: 1.2.0
regexparam: 2.0.1
y-indexeddb: 9.0.9_yjs@13.5.48
y-prosemirror: 1.2.0_vhy2hiocjqydif5dwvxgfnpihi
y-protocols: 1.0.5
y-webrtc: 10.2.4
@ -1197,15 +1195,6 @@ packages:
dev: false
optional: true
/y-indexeddb/9.0.9_yjs@13.5.48:
resolution: {integrity: sha512-GcJbiJa2eD5hankj46Hea9z4hbDnDjvh1fT62E5SpZRsv8GcEemw34l1hwI2eknGcv5Ih9JfusT37JLx9q3LFg==}
peerDependencies:
yjs: ^13.0.0
dependencies:
lib0: 0.2.63
yjs: 13.5.48
dev: false
/y-prosemirror/1.2.0_vhy2hiocjqydif5dwvxgfnpihi:
resolution: {integrity: sha512-t3uxuX4HIkb1GNt8jV+dplRbNH2OmQD/BNeCCbjLD3Mq0o6JEXxHedv58ZIPFDE6ma24jljlL+u8pGvN6B37XQ==}
peerDependencies:

View file

@ -1,6 +1,5 @@
import * as Y from "yjs";
import { WebrtcProvider } from "y-webrtc";
import { IndexeddbPersistence } from "y-indexeddb";
import { nanoid } from "nanoid";
export type WorldIdentifier = {
@ -35,7 +34,6 @@ export function getWorldY(world: WorldIdentifier): WorldY {
"wss://y-webrtc-signaling-us.herokuapp.com",
],
});
const idbProvider = new IndexeddbPersistence(world.room, ydoc);
const worldY = { ydoc, webrtcProvider: provider };
worldYCache[world.room] = worldY;
return worldY;