From dd1cb9c23392d4d43198d60879fecf61fe4503b7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Jun 2023 14:08:04 +0200 Subject: Implement detection of resource binding offer This allows to trigger resource binding if the stream supports it. --- xmpp/stream_pair.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmpp/stream_pair.go') 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!") } -- cgit v1.2.3-70-g09d2