api
api copied to clipboard
Make time limit on api call
Occasionally an api call to a server will just hang indefinitely. I couldn't find in the documentation any way to supply a timeout in case the server hangs. Or am I wrong? Thank you
We currently don't have a way to set a timeout on requests, but we'll add one in our upcoming v5 release. Figure we can piggyback off our existing sdk.config() architecture with a timeout property there.
sdk.config({ timeout: 30 });