Wim Jongeneel
Jun 11, 2021

Yes, it is the same endpoint. The server first sends the text/event-stream header to the client. With this, the client knows that /sse is an event stream and will keep listening for more events. You don't need a keep-alive, you just don't finish the response untill you are done. (Http responses can be partially send by 'flushing' the buffer to the client)

Wim Jongeneel
Wim Jongeneel

Written by Wim Jongeneel

Software Engineer at Mendix (Rotterdam, The Netherlands) • Student MSc Software Engineering • Functional programming enthusiast

No responses yet