Decode presence and message for components

This commit is contained in:
Mickael Remond
2018-01-23 08:55:15 +01:00
parent 57cc0a25ac
commit cb2af43fe3
2 changed files with 11 additions and 0 deletions

View File

@@ -6,6 +6,13 @@ import (
"fluux.io/xmpp"
)
const (
localUser = "admin@localhost"
)
// TODO add webserver listener to support receiving message from facebook and replying
// Message will get to define localhost user and be routed only from local user
func main() {
component := MyComponent{Name: "Facebook Gateway", Category: "gateway", Type: "facebook"}
component.xmpp = &xmpp.Component{Host: "facebook.localhost", Secret: "mypass"}