Expand description
Constructors§
Source§new WebxdcProvider(__namedParameters: WebxdcProviderOptions): WebxdcProvider
new WebxdcProvider(__namedParameters: WebxdcProviderOptions): WebxdcProvider
Methods§
Source§destroy(): void
destroy(): void
Release the resources held by the provider.
Call this when the provider is no longer needed, particularly in tests.
Since the webxdc API does not provide a way to unregister the update listener, we instead set a destroyed flag to ignore future updates.
Source§onSaved(handler: () => void): void
onSaved(handler: () => void): void
Register a handler that gets fired whenever local changes are saved.
This means they are broadcast to chat peers.
Webxdc integration with yjs.