summaryrefslogtreecommitdiff
path: root/xmpp/router.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-30 20:03:51 +0200
committerxengineering <me@xengineering.eu>2023-06-30 20:03:51 +0200
commite2c057571ae309cf503851ab8f63c2159f2ef4bc (patch)
treef1b28b26c4501292ee4f6d9836f80f1768e1963b /xmpp/router.go
parent2f1fd4d1ce2c0c2e46fcfa1ffedfd84f0d36484e (diff)
parentd30e2cd84ac54f4ea86f430249f09e272fe9a800 (diff)
downloadlimox-e2c057571ae309cf503851ab8f63c2159f2ef4bc.tar
limox-e2c057571ae309cf503851ab8f63c2159f2ef4bc.tar.zst
limox-e2c057571ae309cf503851ab8f63c2159f2ef4bc.zip
Merge branch 'resource-binding'
This adds some really basic resource binding implementation which will work for now but has to be improved for a first release.
Diffstat (limited to 'xmpp/router.go')
-rw-r--r--xmpp/router.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmpp/router.go b/xmpp/router.go
index 9d69033..1d9c3e5 100644
--- a/xmpp/router.go
+++ b/xmpp/router.go
@@ -25,9 +25,17 @@ func getRoutingTable() routingTable {
{xml.Name{`http://etherx.jabber.org/streams`, `features`}, streamFeaturesHandler},
{xml.Name{`urn:ietf:params:xml:ns:xmpp-sasl`, `success`}, saslSuccessHandler},
{xml.Name{`urn:ietf:params:xml:ns:xmpp-sasl`, `failure`}, saslFailureHandler},
+ {xml.Name{`jabber:client`, `iq`}, voidIq},
}
}
+// voidIq just logs that an IQ element was received. In the current state of
+// the software there is no further processing.
+// TODO process IQs for error handling and further information processing.
+func voidIq(s *session, e []xml.Token) {
+ log.Println("Received IQ element")
+}
+
// route determines the correct handler function for the given XML element by a
// given routingTable. In addition it executes the determined handler function.
// If no handler function is found an error message is send via the log module.