Kevin Jahns
Kevin Jahns
I didn't know about p2pt. Pretty cool, thanks for sharing! > It is a great way to make the web 3.0 and it would be lovely, if @dmonad or an...
The awareness protocol itself is really simple. Here is a good explanation: https://github.com/yjs/y-protocols/blob/master/PROTOCOL.md The docs explain the document updates fairly well: https://docs.yjs.dev/api/document-updates You just somehow need to ensure that all...
The meta property is intended to store information about the "before-state" that is required to restore exactly that state. One example would be to store the cursor position that should...
Let's say: - Before performing a change, the cursor is at position X. - Before performing the second change, the cursor position is at position Y. - These two changes...
Hi @ralphiee22, This is a problem because `undefined` is not valid JSON. You can try it out yourself: `JSON.parse("{ val: undefined }")` throws an exception as well. I'm not quite...
Formatting attributes in Yjs are JSON encoded and sent over the wire. Hence, Yjs cant accept undefined values as formatting attributes because they can't be JSON encoded. I can't change...
Hi @pierscowburn, I haven't read the full code, but based on the explanation, it sounds like everything is working as expected. In Yjs (the same is true for most CRDTs),...
```javascript import * as Y from 'yjs' for (let i = 0; i < 100; i++) { const ydoc1 = new Y.Doc() const ydoc2 = new Y.Doc() const sync =...
Hi @benatkin, Can you show some kind of benchmarks that readAsDataURL outperforms the current approach? In any case, the current implementation is fast enough as operations on typed arrays are...
Thanks @holtwick, Thanks for the praise and the mention. Happy that the encoder is useful :) There are indeed some variables that aren't tree-shaken. Mainly the console logger and the...