Everything seems to be set up and working properly except when I run the Websocket server with persist using this env:
CALLBACK_URL=http://localhost:3001/ CALLBACK_OBJECTS='{"content":"Y.Map"}' PORT=1234 YPERSISTENCE=./dbDir node ./node_modules/y-websocket/bin/server.js
I get this error:
TypeError: getContent(...).toJSON is not a function
And this is how my doc looks:
const ydoc = new Y.Doc();
const ymap = ydoc.getMap('content');
ymap.set('doc', myJson);
Otherwise, without the CALLBACK_OBJECTS
set, the http request is received as expect, it just contains no body.
Also, @dmonad, thank you for the support you’re providing. I don’t know how you have time to reply as fast as you do, but I appreciate it.