mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function connected() {
|
||||||
|
if ($this->fp) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function request($cmd) {
|
public function request($cmd) {
|
||||||
if (!$this->fp) {
|
if (!$this->fp) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user