eventsource icon indicating copy to clipboard operation
eventsource copied to clipboard

Server-sent events for Go

Results 4 eventsource issues
Sort by recently updated
recently updated
newest added

if i want auth use query or header, how can do this? if server want close connect, any api can do this?

Hello, I'm developping chat rooms based on Twitter hashtag with Server sent events. I have a problem concerning the disconnection of the client. I run a goroutine to send messages...

See #16 as example. We should ensure all goroutines are exited before close all control channels and other stuff.

bug

- Add a short sleep to startEvent stream to mitigate race condition. expectResponse() already has one. - Add a required Host: header to the HTTP/1.1 GET request