diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-01-30 23:19:43 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-01-30 23:19:58 +0100 |
commit | 6a1121ab2e91a362ed1e13e18c44fca40761f97a (patch) | |
tree | 6856935e903f221a249f95ebd14a262aed5bf98c /lib/eventsource.php | |
parent | e0f655fb707e1c632602319a6b989e8f58866953 (diff) | |
download | nextcloud-server-6a1121ab2e91a362ed1e13e18c44fca40761f97a.tar.gz nextcloud-server-6a1121ab2e91a362ed1e13e18c44fca40761f97a.zip |
provide server side close option for EventStream
Diffstat (limited to 'lib/eventsource.php')
-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 |