I can normally read data from Firebase Realtime Database via REST API
through .GET
requests. And the same applies for writing data with .PUT
requests. But in the Firebase Realtime Database REST API documentation it is specified that you can also set a SSE listener (EventSource / Server-Sent Events ).
Thus far I have
- Set the
Accept
header to"text/event-stream"
as stated in the documentation (withFB_IotHttpHeaderFieldMap
and its methodAddField
). - Set the
HTTP
security layerSSL
(so that PLC would communicate withREST API
throughHTTPS
as needed by the documentation).
But now I can't wrap my head around what I should do next ...
- How would you approach this problem?
- What is the next step into setting an SSE listener?
- And if there is no built-in way to do this - is it possible to code it by myself?
Using: TwinCAT XAE (VS 2017) on Windows 10