UNPKG

@textbus/collaborate

Version:

Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.

12 lines (11 loc) 434 B
import { Doc as YDoc } from 'yjs'; import { WebsocketProvider } from 'y-websocket'; import { SyncConnector } from '../base/sync-connector'; export declare class YWebsocketConnector extends SyncConnector { provide: WebsocketProvider; private onSync; private onUpdate; constructor(url: string, roomName: string, yDoc: YDoc); setLocalStateField(key: string, data: Record<string, any>): void; onDestroy(): void; }