mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-23 19:52:41 +01:00
16 lines
336 B
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)
|
||
|
}
|
||
|
|
||
|
|