summaryrefslogtreecommitdiff
path: root/xmpp/stream_pair.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-30 14:08:04 +0200
committerxengineering <me@xengineering.eu>2023-06-30 15:30:27 +0200
commitdd1cb9c23392d4d43198d60879fecf61fe4503b7 (patch)
tree089f4054ba1b4575e347c0c49b5d6d9408be2b76 /xmpp/stream_pair.go
parent2f1fd4d1ce2c0c2e46fcfa1ffedfd84f0d36484e (diff)
downloadlimox-dd1cb9c23392d4d43198d60879fecf61fe4503b7.tar
limox-dd1cb9c23392d4d43198d60879fecf61fe4503b7.tar.zst
limox-dd1cb9c23392d4d43198d60879fecf61fe4503b7.zip
Implement detection of resource binding offer
This allows to trigger resource binding if the stream supports it.
Diffstat (limited to 'xmpp/stream_pair.go')
-rw-r--r--xmpp/stream_pair.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmpp/stream_pair.go b/xmpp/stream_pair.go
index 693972e..9be880f 100644
--- a/xmpp/stream_pair.go
+++ b/xmpp/stream_pair.go
@@ -98,5 +98,10 @@ func streamFeaturesHandler(s *session, e []xml.Token) {
return
}
+ if hasBind(e) {
+ log.Println("Stream supports ressource binding")
+ return
+ }
+
log.Println("Stream has no implemented features!")
}