Skip to content

bootic/bootic_sse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Go Client for Bootic's HTTP events stream

Example

import(
  "github.com/bootic/bootic_sse"
  data "github.com/bootic/bootic_go_data"
)

func main() {
	client, _ := bootic_sse.NewClient("https://some.stream.com", "token")

	events := make(data.EventsChannel)
	client.Subscribe(events)
	
	for {
		log.Println(<-events)
	}
	
}

ToDo

Not production ready yet. Useful to subscribe to remote HTTP stream locally.

  • Reconnect on failure

About

Go Client for Bootic's HTTP events stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages