2
0
mirror of https://github.com/42wim/matterbridge synced 2024-11-19 03:25:33 +00:00
matterbridge/vendor/github.com/mrexodia/wray/examples/publish.go
2016-09-04 20:04:43 +02:00

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)
}