Class EventSource
Wrapper for server side events (http://en.wikipedia.org/wiki/Server-sent_events)
This version is tailored for the Gallery app, do not use elsewhere!
link |
https://github.com/owncloud/core/blob/master/lib/private/eventsource.php |
---|---|
todo |
Replace with a library |
package |
OCA\Gallery\Controller |
close()
It's best to let the client close the stream
init()
send(string $type, mixed $data = null)
If only one parameter is given, a typeless message will be sent with that parameter as data
Throws |
|
---|
string
mixed
validateMessage(string $type, mixed $data)
string
mixed
started : boolean
var |
---|
boolean