From 775f6eed1dc0d6fdf1bf42fd9366870ef300cbcc Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sun, 2 Jun 2019 15:16:14 +0200 Subject: [PATCH] fix websocket example --- README.v13.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.v13.md b/README.v13.md index ce462225..9ea5b8f7 100644 --- a/README.v13.md +++ b/README.v13.md @@ -86,9 +86,7 @@ import { WebsocketProvider } from 'y-websocket' import { TextareaBinding } from 'y-textarea' const doc = Y.Doc() -const provider = new WebsocketProvider('http://localhost:1234', 'roomname') -// sync all document updates through the websocket connection -provider.sync('doc') +const provider = new WebsocketProvider('ws://localhost:1234', 'roomname', doc) // Define a shared type on the document. const ytext = doc.getText('my resume')