A colleague (previous frontend dev, now project ma...
# getting-started
h
A colleague (previous frontend dev, now project management) recently said that Server Sent Events are outdated, but I couldn't find any good reading on this online. Mainly just articles that compare the benefits and how to do it. Which is really a bummer because we wanted to use them in an upcoming project. I can't really remember but I think he said the modern way is to use jellyfish (?) or something. I'd have to ask again on Monday. Does anyone has some input on what is a good way with KotlinJS? The product is nothing major just some IoT fleet management with real time data.
c
SSE is a perfectly good solution if you need events from the server and you don’t need bi-directional communication
h
Thanks, my colleague is very JS, TS, React and has little sympathy for our KotlinJS approach. But his headwind makes me unsure sometimes.
c
SSE is a part of the HTTP2 protocol, so it’s not really related to language choice, you can find client libs that support SSE in any platform you might decide to use. If you are running code in the browser you will use https://developer.mozilla.org/en-US/docs/Web/API/EventSource
As long as your server supports it you should have no problem. I’m unsure how this actually works in KotlinJS land, check in #javascript maybe
Sorry I think I assumed you were writing code for the client, but perhaps you are writing a backend application?
h
I will write both (start is months away) I just wanted to scout out how I will do it. With the current product, which I will continue to support, I took over an existing project so I mostly continued what my predecessor started.