Set channel timeout

Verified
Added by iNTERFACEWARE

Set the timeout for the current script, must be set inside a function, usually main().

Source Code
-- set the channel timeout to 2 minutes 
-- must be set inside a function, usually within main()
function main()
   iguana.setTimeout(120)
end
Description
Set the timeout for the current script, must be set inside a function, usually main().
Usage Details

Use iguana.setTimeout() to set the timeout for the current script (the default is 5 minutes). The setTimeout() function must be run within a function, we recommend setting the timeout within the main() function.

The timeout change works when the channel is running , and also works in the Translator Editor (test mode).

How to use the snippet:

  • Paste the code into your script