Try the fastest and simplest way to install ONLYOFFICE

Editor callback url time

Integration questions/issues

Editor callback url time

Postby psergiu » Tue Apr 12, 2016 4:22 pm

Hi guys,

How can I change the callback time for the editor? I believe now it is at 10 seconds!

Regards,
psergiu
 
Posts: 8
Joined: Wed Apr 06, 2016 2:16 pm

Re: Editor callback url time

Postby Alex » Thu Apr 14, 2016 2:49 pm

Please specify your task more detailed
There is no "callback time" parameter in the Document Editor, so we do not understand what do you mean
Alex
 
Posts: 50
Joined: Sat Nov 07, 2015 3:19 pm

Re: Editor callback url time

Postby psergiu » Thu Apr 14, 2016 3:54 pm

Hi Alex,

The callback url is set in the editor config. https://api.onlyoffice.com/editors/advanced
... in the PHP example (https://api.onlyoffice.com/editors/example/php) the callback url is webeditor-ajax.php

This I what I mean:
1. I open the editor
2. Make the changes. It saves automatically
3. I leave the window
4. After 10 seconds "The document editing service informs the document storage service about status of the document editing using the callbackUrl from JavaScript API." https://api.onlyoffice.com/editors/callback
5. In the document storage service I save the file locally

Now my question is how can I reduce the callback time from 10 seconds?
Where is that value configured?
What is the motivation behind the 10 seconds?

I hope is clear now!
psergiu
 
Posts: 8
Joined: Wed Apr 06, 2016 2:16 pm

Re: Editor callback url time

Postby Alex » Fri Apr 15, 2016 1:47 pm

We do not recommend changing this delay as 10 sec is the most stable value for sending status 2/3
btw
You can change it in the source code only
DocService\sources\DocsCoServer.js
c_oAscSaveTimeOutDelay
Alex
 
Posts: 50
Joined: Sat Nov 07, 2015 3:19 pm

Re: Editor callback url time

Postby psergiu » Mon Apr 18, 2016 6:58 am

Hi Alex,

Thanks for suggestion and reply
I will run some simulations !
psergiu
 
Posts: 8
Joined: Wed Apr 06, 2016 2:16 pm

Re: Editor callback url time

Postby psergiu » Mon May 16, 2016 3:34 pm

Hi Alex,

I can't seem to find the path you mentioned.
I am using version 3.0.0-99 on Ubuntu 15

The only thing remotely close is /var/www/onlyoffice/documentserver/CoAuthoringService/CoAuthoring/sources/DocsCoServer.js
In that file on line 84: var c_oAscSaveTimeOutDelay = 5000;
Changing the value of this var had no effect. The callback still triggered after 10 seconds.

Please help me out!

Thanks a lot!
psergiu
 
Posts: 8
Joined: Wed Apr 06, 2016 2:16 pm

Re: Editor callback url time

Postby kahuna76 » Tue Sep 27, 2016 5:51 am

I am having the same issue - changing c_oAscSaveTimeOutDelay doesn't do anything ... Still takes 10 seconds.
kahuna76
 
Posts: 2
Joined: Tue Sep 27, 2016 5:49 am


Return to API

Who is online

Users browsing this forum: No registered users and 2 guests

cron