requestTimeout Property

Description

This property defines the timeout for all Web SDK service requests and for all requests to the web server made by the editor to retrieve symbols and templates.

Use the set method of the ESDWeb object to set this property as illustrated below or pass it to the startup method as part of the configuration parameter.

This value is in milliseconds and must be a positive integer. In the example below, the value of this property is set to 10,000 resulting in a request timeout of ten seconds.

If this property is not set, the request timeout will default to 30 seconds.

Example

editor = new window.__editor(undefined, document.getElementById('editor-node'));

editor.set('requestTimeout', 10000); // Set request timeout to 10 seconds

/* set other properties here */

editor.startup(...);