On Sun, 23 Feb 2014 22:37:19 GMT, Stephan Dilly wrote:

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

Ah, your right. I'll do a bit of extra reading on this I guess. From the tutorials I read I thought I was taking the right approach, but that link states otherwise. Thanks