summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/routing.go')
-rw-r--r--xmpp/routing.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmpp/routing.go b/xmpp/routing.go
index 2b1680f..b184b1c 100644
--- a/xmpp/routing.go
+++ b/xmpp/routing.go
@@ -22,3 +22,12 @@ func parse[T any](data T, s *xml.StartElement, d *xml.Decoder, c chan<- any) {
c <- data
}
}
+
+func handle(element any) {
+ switch t := element.(type) {
+ case streamFeatures:
+ log.Println("Handling stream features ...")
+ default:
+ log.Printf("Unknown parsed element: %v", t)
+ }
+}