tmaxmax / go-sse

Fully featured, spec-compliant HTML5 server-sent events library

Home Page:https://pkg.go.dev/github.com/tmaxmax/go-sse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ‘‹ Are you using go-sse?

tmaxmax opened this issue Β· comments

Hi there,

If you're using go-sse for any kind of project or trying to evaluate whether go-sse is the right tool for your project, please let me know here what you're using go-sse or planning to use for!

This will help me tremendously in planning the development of the library, designing its API and testing it properly. And if you're not sure whether you should use it or feel like it's missing something, by chiming in here we can find a path to make go-sse the right choice for you!

Thank you for the support!

P.S. Make sure to see the roadmap to v1 and the proposals to keep up to date with go-sse's development!

I do, for now it's the exact right tool for my needs. I'll let you know if I have ideas

Hi, I'm implementing a small go project. I found this and it looks like exactly what I need, but I'm still somewhat new to Go and having trouble understanding how to implement it.

I managed to get a simple proof of concept working, that sent random messages every 1s, using labstack's echo router.

But I'm struggling to go beyond that and make the sse only send messages on certain events, for example when one of my objects has a state change.

I'm guessing I need to implement the provider for that, so that my other functions elsewhere can send a message to the queue and which then gets published to all the subscribers. But my inexperience is hampering my progress.

Hi @gostega, thank you for giving go-sse a try!

Could you maybe open a new discussion and share the code, along with a broader explanation of what you're trying to achieve and what doesn't work? I should be able to assist you better this way.

EDIT: You should find some advice in #28. I've hidden your subsequent comment in this issue to keep the feed clean. If you could and want I would appreciate it a lot if you could broadly describe your use-case for go-sse in your initial comment, as an edit!

Hi @tmaxmax , I did so, #27, here is a skeleton of my project https://github.com/gostega/go-sse-poc

commented

Just to add my project here: https://github.com/hiveot/hub.

This projects provides an IoT hub for communication between devices, services and users. Go-sse is used as a return channel together with https for posting requests.

The use-case is simply as a transport to send messages from the server to a single client.