You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matterbridge/vendor/github.com/mrexodia/wray/examples/publish.go

16 lines
336 B
Go

package main
import "github.com/pythonandchips/wray"
import "fmt"
func main() {
wray.RegisterTransports([]wray.Transport{ &gofaye.HttpTransport{} })
client := wray.NewFayeClient("http://localhost:5000/faye")
params := map[string]interface{}{"hello": "from golang"}
fmt.Println("sending")
client.Publish("/foo", params)
}