Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebHook.SetTimeOut

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

Parameters

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

Result

Returns OK or error.

Description

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 license.

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


WebHook.SetScript - WebPolicyDelegate.AddMimeType