Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active Jun 22, 2021
Embed
What would you like to do?
window.addEventListener('load', () => {
const ydoc = new Y.Doc();
const provider = new WebsocketProvider('ws://localhost:3312', 'velotio-demo', ydoc);
const type = ydoc.getText('Velotio-Blog');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment