\OCPIEventSource

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

Summary

Methods
Constants
send()
close()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

send()

send(string  $type, mixed  $data = null) 

send a message to the client

Parameters

string $type
mixed $data

if only one parameter is given, a typeless message will be send with that parameter as data

close()

close() 

close the connection of the event source