send only json steps

This commit is contained in:
Philipp Kühn
2019-05-05 21:47:52 +02:00
parent 03cb2d4c75
commit 76dca53d80
3 changed files with 26 additions and 2 deletions

View File

@@ -54,7 +54,11 @@ export default class Collaboration extends Extension {
const sendable = sendableSteps(state)
if (sendable) {
this.options.onSendable(sendable)
this.options.onSendable({
version: sendable.version,
steps: sendable.steps.map(step => step.toJSON()),
clientID: sendable.clientID,
})
}
}, this.options.debounce)