¡Hola, amigos! I’m Señor FAQ, the mustached maestro of questions and answers! With my trusty glasses and a book of endless wisdom, I turn dudas into solutions. Soy el héroe de los curiosos and the champion of clarity.
JScms_getWebSocketStatus
The JScms_getWebSocketStatus
function checks whether the WebSocket server is currently running by verifying the existence of a process ID (PID) file and checking if the corresponding process is active.
JScms_getWebSocketStatus()
(boolean) true
if the WebSocket server process is running, otherwise false
.
core/tmp/DynamicWebSocket.pid
.ps
command.true
; otherwise, it removes the stale PID file and returns false
.
<?php
if (JScms_getWebSocketStatus()) {
echo "WebSocket server is running.";
} else {
echo "WebSocket server is not running.";
}
?>