On Sun, 23 Feb 2014 22:35:02 GMT, Stephan Dilly wrote:

Never used the EventSource interface yet, but judging by its documentation ( https://developer.mozilla.org/en-US/docs/Server-sentevents/Usingserver-sent_events ) you are supposed to send json data from the server and the event interface looks for an "event" field in there to route the message to the correct event listener (in your case the "message" event)

Even more weird it expects the server to send something like this:

event: message
data: {"json":"payload"}

just look at the php example the give under the link above