This commit is contained in:
Mickael Remond
2018-01-23 09:08:21 +01:00
parent cb2af43fe3
commit 8cb1e1264e
4 changed files with 6 additions and 50 deletions

View File

@@ -44,6 +44,10 @@ func main() {
reply := p.MakeError(xError)
component.xmpp.Send(&reply)
}
case xmpp.Message:
fmt.Println("Received message:", p.Body)
case xmpp.Presence:
fmt.Println("Received presence:", p.Type)
default:
fmt.Println("ignoring packet:", packet)
}