mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-10-22 12:35:36 -07:00
Decode presence and message for components
This commit is contained in:
@@ -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"}
|
||||
|
Reference in New Issue
Block a user