You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LoroDoc returns an unsubscribe function while Awareness uses an approximation of the EventTarget interface.
In my ideal world, they'd both just use EventTarget (available in both Node and Browser), but wasm_bindgen doesn't support that so we'd have to wrap LoroDoc which is not ideal.
The text was updated successfully, but these errors were encountered:
I just rigged these up in my application and found these two types to be confusingly different.
LoroDoc
returns an unsubscribe function whileAwareness
uses an approximation of theEventTarget
interface.In my ideal world, they'd both just use
EventTarget
(available in both Node and Browser), butwasm_bindgen
doesn't support that so we'd have to wrapLoroDoc
which is not ideal.The text was updated successfully, but these errors were encountered: