diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eventsource.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/eventsource.php b/lib/eventsource.php index c123eb4b837..b0450ff3d55 100644 --- a/lib/eventsource.php +++ b/lib/eventsource.php @@ -70,4 +70,11 @@ class OC_EventSource{ echo PHP_EOL; flush(); } + + /** + * close the connection of the even source + */ + public function close(){ + $this->send('__internal__','close');//server side closing can be an issue, let the client do it + } }
\ No newline at end of file |