Hello,
in our project <PROJECT_NAME> we receive data through kafka. This data can be received at any point in time and if data is received the user should be notified in the frontend. One of my external colleagues suggested using websockets in the frontend to listen for messages from the backend and display notifications in the frontend.
Is there any existing implementation with websockets in A12 we can use? Is there any documentation?
from my knowledge there is none atm. in a former project we also customized that…for our case server sent events was good enough for that usecase. https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
otherwise possibly Data Distribution is something you can evaluate for that purpose GetA12 Login
I will give it a try and report back.
I implemented websockets directly using the print-engine projects implementation as guidance.
Hello Markus,
I’m currently trying to implement server side events for our project. But as the EventSource object creates a HTTP GET request without possibility of customising the headers, I face an authorization issue. How did you workaround this in your project?
Hello,
Please check out @microsoft/fetch-event-source - npm, the enhancement within this package allows you to put the headers in the request.
Please be aware that this is an open-source project, with issues not resolved. You might find the better package for your need somewhere 
hi @alexis-raw-iron the lib which is used in the project i am talking about is also about enhancing the request with header information. There GitHub - EventSource/eventsource: EventSource client for Node.js and Browser (polyfill) is used