forked from jshiffer/go-xmpp
Clean-up
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user