Server-Sent Events are unidirectional originating from the back-end towards the client. Via SSEs the client can only be notified, it cannot send data back (it can use plain HTTP for that).
For a detailed introduction into SSEs, please visit the HTML5 specification.
Warning: Although SSEs are a HTML5 standard, they still cannot be used with the Microsoft Internet Explorer on the client side or anything behind a Microsoft Azure Application Gateway on the server side.
Using the EventSource
object in JavaScript is also covered in the HTML5 specification.
/things
The SSE API for receiving change notifications is the /things
endpoint:
http://localhost:8080/api/2/things