Faye client in Go.
This is a work in progress. Expect it to be broken, partially or otherwise.
See Faye.
package main
import "fmt"
import "github.com/haggen/faye"
func main() {
f, err := faye.New("https://example.org/faye")
if err != nil {
panic(err)
}
channel := f.Subscribe("/channel")
for {
m := <-channel
fmt.Println(m.Data)
}
}
Faye (Go) package is under The MIT License © 2017 Arthur Corenzan.
Faye protocol is under The MIT License © 2009–2017 James Coglan.