Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryptix/gosseclient
Helper for Server-Sent Events
https://github.com/cryptix/gosseclient
Last synced: 27 days ago
JSON representation
Helper for Server-Sent Events
- Host: GitHub
- URL: https://github.com/cryptix/gosseclient
- Owner: cryptix
- License: mit
- Created: 2013-11-06T18:53:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-05T12:06:18.000Z (over 10 years ago)
- Last Synced: 2024-10-18T17:35:57.353Z (3 months ago)
- Language: Go
- Size: 133 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
goSSEClient
===========Helper for Server-Sent Events
Returns a channel of SSEvents.
```go
type SSEvent struct {
Id string
Data []byte
}
```## Example
```go
sseEvent, err := goSSEClient.OpenSSEUrl(url)
if err != nil {
panic(err)
}for ev := range sseEvent {
// do what you want with the event
}```