mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
@@ -122,12 +122,12 @@ class system_dashboard_service extends base_websocket_system_service {
|
|||||||
// wait until we connect again
|
// wait until we connect again
|
||||||
while (!$this->connect_to_ws_server()) {
|
while (!$this->connect_to_ws_server()) {
|
||||||
if ($show_disconnect_message) {
|
if ($show_disconnect_message) {
|
||||||
$this->warn("Websocket server disconnected");
|
$this->warning("Websocket server disconnected");
|
||||||
$show_disconnect_message = false;
|
$show_disconnect_message = false;
|
||||||
}
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
$this->warn("Websocket server connected");
|
$this->warning("Websocket server connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
// return a timer value so another timer will be set
|
// return a timer value so another timer will be set
|
||||||
@@ -180,12 +180,12 @@ class system_dashboard_service extends base_websocket_system_service {
|
|||||||
// wait until we connect again
|
// wait until we connect again
|
||||||
while (!$this->connect_to_ws_server()) {
|
while (!$this->connect_to_ws_server()) {
|
||||||
if ($show_disconnect_message) {
|
if ($show_disconnect_message) {
|
||||||
$this->warn("Websocket server disconnected");
|
$this->warning("Websocket server disconnected");
|
||||||
$show_disconnect_message = false;
|
$show_disconnect_message = false;
|
||||||
}
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
$this->warn("Websocket server connected");
|
$this->warning("Websocket server connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
// return a timer value so another timer will be set
|
// return a timer value so another timer will be set
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ abstract class base_websocket_system_service extends service implements websocke
|
|||||||
|
|
||||||
if ($this->ws_client !== null && $this->ws_client->is_connected()) {
|
if ($this->ws_client !== null && $this->ws_client->is_connected()) {
|
||||||
// Combine the websocket client and the listeners into a single array
|
// Combine the websocket client and the listeners into a single array
|
||||||
$read = array_merge($listeners, $this->ws_client->socket());
|
$read = array_merge($listeners, [$this->ws_client->socket()]);
|
||||||
// Reset the suppress message flag
|
// Reset the suppress message flag
|
||||||
$suppress_ws_message = false;
|
$suppress_ws_message = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user