IEventSource
in
wrapper for server side events (http://en.wikipedia.org/wiki/Server-sent_events) includes a fallback for older browsers and IE
use server side events with caution, to many open requests can hang the server
The event source will initialize the connection to the client when the first data is sent
Tags
Table of Contents
Methods
Methods
close()
close the connection of the event source
public
close() : void
Tags
send()
send a message to the client
public
send(string $type[, mixed $data = null ]) : void
Parameters
- $type : string
-
One of success, notice, error, failure and done. Used in core/js/update.js
- $data : mixed = null
Tags
Return values
void —if only one parameter is given, a typeless message will be send with that parameter as data