Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  


Sets the timeout for the hook.

Component Version macOS Windows Linux Server iOS SDK
WebHook 12.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "WebHook.SetTimeOut"; WebHook; Value )   More


Parameter Description Example
WebHook The reference number of the web hook. $webhook
Value The timeout value in seconds.
Default is 300 for 5 minutes.
5 * 60


Returns OK or error.


Sets the timeout for the hook.
Default is to close socket 5 minutes after last data was sent/received to avoid open connections linger around forever.

For example if you receive notifications from your phone system, you may set the maximum size to 10000 bytes (via WebHook.SetMaximumRequestSize function) and a timeout of 60 seconds. That is probably 10 times more than needed, but may avoid some malicious user from sending a ton of useless traffic.

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 10th December 2021, last changed 20th February 2022

WebHook.SetScript - WebPolicyDelegate.AddMimeType

💬 Ask a question or report a problem

Start Chat