this is an example of using tiptap,yjs and webrtc to do real time collaborative editing across device and browsers
app
├── routes
│ └── editor.tsx // tiptab editor route, open it in different browser to see the changes get sync
└── utils
└── webrtc.client.tsx //init the webrtc, ydoc and collaboration plugin on client
Open this example on CodeSandbox: