Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Implementing Server-Sent Events (SSE)

148 views
Skip to first unread message

Cheikh Seck

unread,
Apr 23, 2025, 12:49:27 PMApr 23
to golang-nuts
Hi folks, I wanted to share a post I recently wrote that provides an overview of what SSE is and how to implement it with Go's standard library. Read about it here: https://medium.com/dev-genius/server-sent-events-with-go-998b54045b10?sk=e251c96f23b6b20b7e9237a1dd9d9cfb

Kevin Chowski

unread,
Apr 23, 2025, 9:28:38 PMApr 23
to golang-nuts
It would be nice to see an example of how to utilize this from the browser rather than curl, e.g. some JavaScript client code.

Tommaso Visconti

unread,
Apr 24, 2025, 12:39:02 PMApr 24
to golang-nuts
You can use the EventSource API:
https://developer.mozilla.org/en-US/docs/Web/API/EventSource

Il giorno gio 24 apr 2025 alle ore 03:28 Kevin Chowski
<Ke...@chowski.com> ha scritto:
>
> It would be nice to see an example of how to utilize this from the browser rather than curl, e.g. some JavaScript client code.
>
> On Wednesday, April 23, 2025 at 10:49:27 AM UTC-6 Cheikh Seck wrote:
>>
>> Hi folks, I wanted to share a post I recently wrote that provides an overview of what SSE is and how to implement it with Go's standard library. Read about it here: https://medium.com/dev-genius/server-sent-events-with-go-998b54045b10?sk=e251c96f23b6b20b7e9237a1dd9d9cfb
>>
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/c03263d3-74da-42e8-be4b-95c5a4bf2cb3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages