Skip to content

cryptix/goSSEClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goSSEClient

Helper for Server-Sent Events

Returns a channel of SSEvents.

type SSEvent struct {
	Id   string
	Data []byte
}

Example

sseEvent, err := goSSEClient.OpenSSEUrl(url)
if err != nil {
	panic(err)
}

for ev := range sseEvent {
	// do what you want with the event
}

About

Helper for Server-Sent Events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages