Add function to check if we are connected to event soscket
This commit is contained in:
parent
347e02e273
commit
b8f1eb7f10
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue