|
|
|
@ -98,7 +98,7 @@ fastify.register(async function (fastify: Fastify) {
|
|
|
|
|
changes: update.changes.toJSON(),
|
|
|
|
|
})),
|
|
|
|
|
);
|
|
|
|
|
} else if (data.type == "getDocument") {
|
|
|
|
|
} else if (data.type === "getDocument") {
|
|
|
|
|
send(socket, requestId, { version: room.updates.length, doc: room.doc.toString() });
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|