From f61b36424843ae44b44dd4253b17ad42e3e8518c Mon Sep 17 00:00:00 2001 From: Mansehej Singh Date: Thu, 30 Jul 2020 03:02:43 +0530 Subject: [PATCH] Change run script in ReadMe callback example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc12eea..09d4aba 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Can take the following ENV variables: - CALLBACK_OBJECTS : JSON of shared objects to get data. ('{"SHARED_OBJECT_NAME":"SHARED_OBJECT_TYPE}') ```sh -CALLBACK_URL=http://localhost:3000/ CALLBACK_OBJECTS='{"prosemirror":"XmlFragment"}' node ./node_modules/y-websocket/bin/server.js +CALLBACK_URL=http://localhost:3000/ CALLBACK_OBJECTS='{"prosemirror":"XmlFragment"}' npm start ``` This would send a callback to localhost:3000 every 2 seconds (default DEBOUNCE_WAIT) with the data of an XmlFragment named Prosemirror in the body.