how to implement autosave where onlyoffice can occassionally/tyimely trigger the server to save the document and not just save in cache? read the doc https://api.onlyoffice.com/editors/callback, but there is no mention of timely trigger of Callback API in here
Hello,
You can trigger forcesave at a certain schedule:
https://api.onlyoffice.com/editors/save#forcesave
I did add it in the local.json, but the server isn’t being triggered. Since this didn’t work, I updated the default.json’s “autoAssembly” as well. But still not hitting server
{
"services": {
"CoAuthoring": {
"autoAssembly": {
"enable": true,
"interval": "5m"
},
"sql": {
"type": "postgres",
"dbHost": "localhost",
"dbPort": "5432",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "onlyoffice"
},
"token": {
"enable": {
"request": {
"inbox": false,
"outbox": false
},
"browser": false
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
},
"secret": {
"inbox": {
"string": "secret"
},
"outbox": {
"string": "secret"
},
"session": {
"string": "secret"
}
}
}
},
"rabbitmq": {
"url": "amqp://guest:guest@localhost"
}
}```
What do you mean by not hitting the server? Do you receive status:6 callbacks?
No I don’t, only when explicitly save icon is clicked