@a-la-fois/doc-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.39 • Public • Published

docClient

Usage

import { Client } from "@a-la-fois/doc-client";

const client = new Client({
  url: "wss://ws.service.com",
});

// get doc container with  synchronized document
const docContainer = await client.getDoc("docId");

// get yjs document
const yjsDoc = docContainer.doc;
// do with it whatever you want
yjsDoc.getText("Text");
yjsDoc.insert(0, "my text");

Readme

Keywords

none

Package Sidebar

Install

npm i @a-la-fois/doc-client

Weekly Downloads

2

Version

0.0.39

License

MIT

Unpacked Size

286 kB

Total Files

64

Last publish

Collaborators

  • jhoysbou
  • evilfant