Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 454 Bytes

Readme.md

File metadata and controls

28 lines (19 loc) · 454 Bytes

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