mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add function to check if we are connected to event soscket
This commit is contained in:
@@ -142,6 +142,15 @@ class event_socket {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function connected() {
|
||||
if ($this->fp) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function request($cmd) {
|
||||
if (!$this->fp) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user