Add helper functions to parent service class. (#7550)

* Add helper functions to parent service class.
Removed existing functions from base_websocket_system class.

* Update service.php
This commit is contained in:
frytimo
2025-10-09 15:53:45 -03:00
committed by GitHub
parent 76c2ccbf29
commit 019dca3596
2 changed files with 71 additions and 26 deletions

View File

@@ -156,22 +156,6 @@ abstract class base_websocket_system_service extends service implements websocke
return 0;
}
protected function debug(string $message) {
self::log($message, LOG_DEBUG);
}
protected function warn(string $message) {
self::log($message, LOG_WARNING);
}
protected function error(string $message) {
self::log($message, LOG_ERR);
}
protected function info(string $message) {
self::log($message, LOG_INFO);
}
/**
* Connects to the web socket server using a websocket_client object
* @return bool True if connected and False if not able to connect