From b15416219ff7defc154ed7aef1091c08b7401f43 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Mon, 11 Aug 2025 13:14:33 -0400 Subject: [PATCH] Update comments --- emhttp/plugins/dynamix/include/publish.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emhttp/plugins/dynamix/include/publish.php b/emhttp/plugins/dynamix/include/publish.php index 79a5e24cb..beb75ee21 100644 --- a/emhttp/plugins/dynamix/include/publish.php +++ b/emhttp/plugins/dynamix/include/publish.php @@ -30,9 +30,9 @@ function curl_socket($socket, $url, $message='') { // If a script publishes to multiple endpoints, timing out on one endpoint will terminate the entire script even if other enpoints succeed. // If this is a problem, don't use $abort and instead handle this in the script or utilize a single sript per endpoint. // -// $opt1: length of the buffer. If not numeric, it's a boolean for $abort. If not numeric, it's a boolean for $abort. -// $opt2: if $opt1 is not numeric, it's a boolean for $abort. -// $opt3: if $opt1 is not numeric, it's a value for $abortTime. +// $opt1: if numeric it's the length of the buffer. If its true|false it signifies whether to utilise the abort if no listeners. +// $opt2: if $opt1 is numeric, it's a boolean for $abort. If $opt1 is boolean, its the timeout defaulting to $opt3 +// $opt3: if $opt1 is numeric, it's a value for $abortTime. If $opt1 is boolean, this parameter shouldn't be used function publish($endpoint, $message, $opt1=1, $opt2=false, $opt3=120) { static $abortStart = [], $com = [], $lens = [];