<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev (info@mypapit.net)" -->
<rss version="2.0" >
    <channel>
        <title>Forum AG-Software News</title>
        <description></description>
        <link>https://forum.ag-software.net/</link>
        <lastBuildDate>Wed, 08 Apr 2026 07:24:15 GMT</lastBuildDate>
        <generator>FeedCreator 1.8.0-dev (info@mypapit.net)</generator>
        <item>
            <title>working with xmppdotnet library in .net core 3.1 (wpf)</title>
            <link>https://forum.ag-software.net/thread/2186-working-with-xmppdotnet-library-in-net-core-3-1</link>
            <description><![CDATA[
I am working with the XMPPDotNet library in a WPF framework .NET 3.1 Core. I want to create chat management system using xmpp. So, i used xmppdotnet library . I am providing all the details in the XMPPClient as mentioned in the documentation, but neither the connection is being established nor am I able to add to a group or send a message. Could you please guide me on how to accomplish these tasks? If there are any mistakes in the code, please correct them and let me know.<br />
this is my code<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Diagnostics</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Net.Mail</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Net.WebSockets</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Reactive.Linq</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Reflection</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Threading</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Threading.Tasks</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Controls</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Data</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Documents</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Input</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Media</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Media.Imaging</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Navigation</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Shapes</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Xml.Linq</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Extensions.Client.Message</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Extensions.Client.Presence</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Extensions.Client.Roster</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Transport</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Transport.Socket</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Transport.WebSocket</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Xmpp</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">XmppDotNet.Xmpp.Client</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">namespace</span> xmppdemo_new</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// Interaction logic for MainWindow.xaml</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">class</span> MainWindow <span style="color: #008000;">:</span> Window</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; XmppClient xmppClient<span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">int</span> websocketRetries <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Track number of WebSocket attempts</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> MainWindow<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InitializeComponent<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">async</span> <span style="color: #6666cc; font-weight: bold;">void</span> Connect<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Attempt WebSocket connection first (preferred)</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmppClient<span style="color: #008000;">&#40;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conf <span style="color: #008000;">=&gt;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conf<span style="color: #008000;">.</span><span style="color: #0000FF;">UseWebSocketTransport</span><span style="color: #008000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StaticNameResolver<span style="color: #008000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Uri<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;wss://chat-new.educrypt.ai:5443/bosh&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conf<span style="color: #008000;">.</span><span style="color: #0000FF;">AutoReconnect</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Jid <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;740@chat-new.educrypt.ai:5443/bosh&quot;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Password <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;740&quot;</span>,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tls <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; websocketRetries <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Reset retries on successful connection</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Connection established using WebSocket</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Rest of your code using xmppClient...</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>WebSocketException ex<span style="color: #008000;">&#41;</span> when <span style="color: #008000;">&#40;</span>ex<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Contains</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;status code '200'&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; websocketRetries<span style="color: #008000;">++;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Check if retries exceed a limit (optional)</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>websocketRetries <span style="color: #008000;">&gt;</span> <span style="color: #FF0000;">3</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox<span style="color: #008000;">.</span><span style="color: #0000FF;">Show</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;WebSocket connection failed repeatedly, using TCP socket instead.&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Fallback to TCP socket</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmppClient<span style="color: #008000;">&#40;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conf <span style="color: #008000;">=&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conf<span style="color: #008000;">.</span><span style="color: #0000FF;">Transport</span> <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SocketTransport<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Use SocketTransport for TCP</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conf<span style="color: #008000;">.</span><span style="color: #0000FF;">AutoReconnect</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Jid <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;740@chat-new.educrypt.ai&quot;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Password <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;740&quot;</span>,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tls <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Connection established using TCP socket</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Rest of your code using xmppClient...</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Rest of your connection established logic...</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">StateChanged</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0600FF; font-weight: bold;">Where</span><span style="color: #008000;">&#40;</span>s <span style="color: #008000;">=&gt;</span> s <span style="color: #008000;">==</span> SessionState<span style="color: #008000;">.</span><span style="color: #0000FF;">Binded</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">Subscribe</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">async</span> v <span style="color: #008000;">=&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// request roster (contact list).</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// This is optional, but most chat clients do this on startup</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> roster <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">RequestRosterAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// send our online presence to the server</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">SendPresenceAsync</span><span style="color: #008000;">&#40;</span>XmppDotNet<span style="color: #008000;">.</span><span style="color: #0000FF;">Xmpp</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Show</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Chat</span>, <span style="color: #666666;">&quot;free for chat&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// send a chat message to user2</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">SendGroupChatMessageAsync</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;1712213988412@conference.chat-new.educrypt.ai&quot;</span>, <span style="color: #666666;">&quot;This is a test&quot;</span>,<span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">async</span> <span style="color: #6666cc; font-weight: bold;">void</span> Button_Click<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, RoutedEventArgs e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> vcardRequest <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> VcardIq <span style="color: #008000;">&#123;</span> Type <span style="color: #008000;">=</span> IqType<span style="color: #008000;">.</span><span style="color: #0600FF; font-weight: bold;">Get</span>, To <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;740@chat-new.educrypt.ai&quot;</span> <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// send the request and await the response</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> resultIq <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">SendIqAsync</span><span style="color: #008000;">&#40;</span>vcardRequest<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// check for success or failure</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>resultIq<span style="color: #008000;">.</span><span style="color: #0000FF;">Type</span> <span style="color: #008000;">==</span> IqType<span style="color: #008000;">.</span><span style="color: #0000FF;">Result</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// server returned a result (sucsess)</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// =&gt; process the vCard here</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>resultIq<span style="color: #008000;">.</span><span style="color: #0000FF;">Type</span> <span style="color: #008000;">==</span> IqType<span style="color: #008000;">.</span><span style="color: #0000FF;">Error</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// server returned an error</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// =&gt; handle error</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> Window_Loaded<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, RoutedEventArgs e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connect<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
</ol></div></div><br />
thanks ,please solve my
]]></description>
            <author> no_email@example.com (lokeshdotnet)</author>
            <pubDate>Wed, 10 Apr 2024 11:20:40 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2186</guid>
        </item>
        <item>
            <title>Unable to connect to CISCO Finesse secure port 5223</title>
            <link>https://forum.ag-software.net/thread/2185-Unable-to-connect-to-CISCO-Finesse-secure-port-52</link>
            <description><![CDATA[
We are trying to connect to CISCO finesse secure port 5223 using Matrix Library for Notifications. Using Pidgin it is working prfectly but from our application its not.<br />
<br />
When we comare wireshark logs for both then we can see that Pidgin request using TLS1.2 where as Matrix request using TLSv1.<br />
So as per the post in this forum we are setting the TLS12 explicitely but its still not working.<br />
<br />
Here is the code:<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">xmppClient</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SetUsername</span><span style="color: #008000;">&#40;</span>username<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">xmppClient</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Password</span> <span style="color: #008000;">=</span> password<span style="color: #008000;">.</span><span style="color: #0000FF;">ToUnsecureString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">xmppClient</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SetXmppDomain</span><span style="color: #008000;">&#40;</span>domain<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">xmppClient</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Port</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">5223</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">xmppClient</span><span style="color: #008000;">.</span><span style="color: #0000FF;">OldStyleSsl</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">xmppClient</span><span style="color: #008000;">.</span><span style="color: #0000FF;">TlsProtocols</span> <span style="color: #008000;">=</span> SslProtocols<span style="color: #008000;">.</span><span style="color: #0000FF;">Tls12</span><span style="color: #008000;">;</span></div></li>
</ol></div></div><br />
<br />
Can you help us what we are missing here so that matrix will use the TLS 1.2
]]></description>
            <author> no_email@example.com (Bhush.bhadane)</author>
            <pubDate>Thu, 29 Sep 2022 05:45:17 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2185</guid>
        </item>
        <item>
            <title>Matrix XMMP - How to retrieve stanza from archived messages.</title>
            <link>https://forum.ag-software.net/thread/2184-Matrix-XMMP-How-to-retrieve-stanza-from-archived</link>
            <description><![CDATA[
Hello,<br />
<br />
We are using OpenFire version 4.7.1 with the Monitoring Service installed. Following the code which I found here :<a href="https://forum.ag-software.net/thread/2140-YAMAQ-Yet-another-message-archiving-question" title="https://forum.ag-software.net/thread/2140-YAMAQ-Yet-another-message-archiving-question">https://forum.ag-software.net/thread/2140-YAMAQ-Yet-anothe…</a> I have managed to retrieve archived messages body, however we have many scenarios which message body is not enough. We want to retrieve MessageArchive stanza as well. By executing the above query at the server database we find out that message stanza is stored at the data table but is there a way to retrieve it using matrix xmpp ? Any help would be appreciated.<br />
<br />
<div class="code">SELECT TOP (1000) [messageID]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[conversationID]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[fromJID]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[fromJIDResource]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[toJID]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[toJIDResource]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[sentDate]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[stanza]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[body]<br />
&nbsp;&nbsp; &nbsp;&nbsp; ,[isPMforJID]<br />
&nbsp; FROM [OpenFire].[dbo].[ofMessageArchive]</div>
]]></description>
            <author> no_email@example.com (Anastasis Ksenos)</author>
            <pubDate>Wed, 13 Apr 2022 13:48:11 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2184</guid>
        </item>
        <item>
            <title>General stability question</title>
            <link>https://forum.ag-software.net/thread/2183-General-stability-question</link>
            <description><![CDATA[
Hi,<br />
I'm trying to write an XMPP client using Xamarin.Forms and MatriX vNext looked like a good place to get a spring board into getting something working.<br />
<br />
I have to admit, I've found the docs/samples (or rather lack of) makes the process pretty painful.&nbsp; Finding some sample code to join a MUC room was luck, more than following any documentation pointers and the API is so LINQ heavy, without any API docs, I've found it very much a trial and error exercise to get things working.&nbsp; I hope I'm just missing some rich repository of information, but I've looked and searched Google and there doesn't appear to be anything?<br />
<br />
So - I did eventually get a client to join a group chat, and post a message using native Windows .Net Framework.<br />
<br />
The same code moved to Xamarin.Forms and targeting an Android platform nearly works, and I can see my client joining the MUC room, but the SendAsync call never returns (eventually times out) (the offending line is shown below).<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">await</span> _xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">SendAsync</span><span style="color: #008000;">&#40;</span>createRoomStanza, predicate, <span style="color: #FF0000;">10000</span>, CancellationToken<span style="color: #008000;">.</span><span style="color: #0000FF;">None</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
</ol></div></div><br />
Should the library work in this context or am I flogging the proverbial "dead horse" with MatriX vNext?<br />
<br />
I see that the last NuGet update is from 2020; is this project dormant now?&nbsp; XMPP support for .Net seems thin on the ground sadly!&nbsp; Any other suggestions?&nbsp; I don't need anything particularly fancy.<br />
<br />
Many thanks,<br />
Oliver
]]></description>
            <author> no_email@example.com (OliverHall)</author>
            <pubDate>Sun, 06 Mar 2022 17:24:44 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2183</guid>
        </item>
        <item>
            <title>Xamarin iOS - DotNetty.Transport.Channels.ClosedChannelException</title>
            <link>https://forum.ag-software.net/thread/2182-Xamarin-iOS-DotNetty-Transport-Channels-ClosedCh</link>
            <description><![CDATA[
Hi,<br />
I'm getting this exception generated intermittently I think when the app/phone goes into sleep mode.&nbsp; It's ahrd to recreate but my error log system is pickig them up.<br />
<br />
I've added some code that tries to monitor when the app goes to sleep and disconnect the XmppClient which I think has caught a lot of these incidents, but some still seem to be slipping through.<br />
<br />
It seems to be caused by the KeepAliveHandler.&nbsp; I was wondering if there was anythign I could lookat from the calling code (in the pipeline perhaps) or whether this was mode something that needed handling in the underlying code.<br />
<br />
<br />
<div class="code">Xamarin Exception Stack:<br />
DotNetty.Transport.Channels.ClosedChannelException: I/O error occurred.<br />
&nbsp; at Matrix.Network.Handlers.KeepAliveHandler+&lt;&gt;c__DisplayClass4_0.&lt;ChannelActive&gt;b__0 (System.Object state) &lt;0x1075f9230 + 0x001bf&gt; in &lt;2b86b82b658d4c92bfd52eb72504d791#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Runtime.CompilerServices.AsyncMethodBuilderCore+&lt;&gt;c.&lt;ThrowAsync&gt;b__7_1 (System.Object state) &lt;0x1016545d8 + 0x00067&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) &lt;0x1015e9790 + 0x0005b&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) &lt;0x1015e2cf8 + 0x0015f&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) &lt;0x1015e2c3c + 0x00043&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () &lt;0x1015e96f0 + 0x00047&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Threading.ThreadPoolWorkQueue.Dispatch () &lt;0x1013bc5c0 + 0x001e7&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] callback) &lt;0x1025c1fa4 + 0x00053&gt; in &lt;149d342757e54bfaa120bb42afe18369#ce8736efb5b41d616940f6b40b6f6dce&gt;:0<br />
&nbsp; at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () &lt;0x1015e9588 + 0x00077&gt; in &lt;218435b0f6654ac1ab0cdd176f26b9bd#ce8736efb5b41d616940f6b40b6f6dce&gt;:0</div><br />
All the best,<br />
Paul.
]]></description>
            <author> no_email@example.com (pcharlton@carbonlabs.co.uk)</author>
            <pubDate>Mon, 29 Nov 2021 17:03:19 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2182</guid>
        </item>
        <item>
            <title>Finesse Notification</title>
            <link>https://forum.ag-software.net/thread/2181-Finesse-Notification</link>
            <description><![CDATA[
I am new to MatriX. I want to get pidgin notifications/events in my C# .NET console application.<br />
<br />
With this code implementation, I am getting exception&nbsp; <b>M_xmppClient_OnError</b> event (BOSH exception ,Message = "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.")<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">XmppClient m_xmppClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmppClient<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Transport</span> <span style="color: #008000;">=</span> Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">Net</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Transport</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Bosh</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Hostname</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;abc.com&quot;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Username</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;user_name&quot;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Password</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;password&quot;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Port</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">5222</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">SetXmppDomain</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;https://abc.com&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">AutoRoster</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">AutoPresence</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnMessage</span> <span style="color: #008000;">+=</span> M_xmppClient_OnMessage<span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnReceiveXml</span> <span style="color: #008000;">+=</span> M_xmppClient_OnReceiveXml<span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnBind</span> <span style="color: #008000;">+=</span> M_xmppClient_OnBind<span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnValidateCertificate</span> <span style="color: #008000;">+=</span> M_xmppClient_OnValidateCertificate<span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnLogin</span> <span style="color: #008000;">+=</span> M_xmppClient_OnLogin<span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnError</span> <span style="color: #008000;">+=</span> M_xmppClient_OnError<span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnAuthError</span> <span style="color: #008000;">+=</span> M_xmppClient_OnAuthError<span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Uri</span> <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> <span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Uri</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;https://abc.com:7552/http-bind/&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">KeepAliveInterval</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">60</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">m_xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Open</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">PubSubManager mgr <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> PubSubManager<span style="color: #008000;">&#40;</span>m_xmppClient<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">mgr<span style="color: #008000;">.</span><span style="color: #0000FF;">OnEvent</span> <span style="color: #008000;">+=</span> Mgr_OnEvent<span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnAuthError<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">Xmpp</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Sasl</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SaslEventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Exception</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnError<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">ExceptionEventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Exception</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnLogin<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">EventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">State</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnValidateCertificate<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">CertificateEventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; e<span style="color: #008000;">.</span><span style="color: #0000FF;">AcceptCertificate</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnBind<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">JidEventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;On bind: &nbsp;&quot;</span> <span style="color: #008000;">+</span> e<span style="color: #008000;">.</span><span style="color: #0000FF;">Jid</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> Mgr_OnEvent<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, MessageEventArgs e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnReceiveXml<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">TextEventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Text</span> <span style="color: #008000;">+</span> e<span style="color: #008000;">.</span><span style="color: #0000FF;">State</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> M_xmppClient_OnMessage<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, MessageEventArgs e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">.</span><span style="color: #0600FF; font-weight: bold;">Value</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Body</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
</ol></div></div>Any help with code implementation. Thank you
]]></description>
            <author> no_email@example.com (uzair2299)</author>
            <pubDate>Fri, 12 Nov 2021 06:21:52 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2181</guid>
        </item>
        <item>
            <title>Dictionary key problem on reconnect</title>
            <link>https://forum.ag-software.net/thread/2180-Dictionary-key-problem-on-reconnect</link>
            <description><![CDATA[
I recently saw this running through my console. I was running my APP that connects to Cisco CIMP using XMPP, and connectivity was lost because I was debugging. My app is written to reconnect if the server is still up, which is the case here (it's just that if I take too long proceeding in the debugger, the connection interrupts).<br />
<br />
So, I got this stacktrace<br />
<br />
<div class="code">15:39:55.246 Unable to connect to srvccx12.nxodev.intra: An item with the same key has already been added. Key: System.Func`2[Matrix.Xml.XmppXElement,System.Boolean] at&nbsp; &nbsp; at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)<br />
&nbsp;&nbsp; at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)<br />
&nbsp;&nbsp; at Matrix.Network.Handlers.XmppStanzaHandler.Handle(Func`2 predicate, Action`2 action)<br />
&nbsp;&nbsp; at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync[T](Func`1 sendTask, Func`2 predicate, Int32 timeout, CancellationToken cancellationToken)<br />
&nbsp;&nbsp; at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync[T1,T2](String s, Int32 timeout, CancellationToken cancellationToken)<br />
&nbsp;&nbsp; at Matrix.XmppConnection.SendAsync[T1,T2](String data, Int32 timeout, CancellationToken cancellationToken)<br />
&nbsp;&nbsp; at Matrix.XmppConnection.SendStreamHeaderAsync(Int32 timeout, CancellationToken cancellationToken)<br />
&nbsp;&nbsp; at Matrix.XmppConnection.SendStreamHeaderAsync(CancellationToken cancellationToken)<br />
&nbsp;&nbsp; at Matrix.XmppClient.ConnectAsync(CancellationToken cancellationToken)<br />
&nbsp;&nbsp; at Matrix.XmppClient.ConnectAsync()<br />
&nbsp;&nbsp; at CiscoXmppLib.XmppConnector.Login(Boolean retryOnError, Boolean aquireLock) in D:\Personal\Documents\Visual Studio 2012\Projects\CiscoFinesseTest\CiscoXmppLib\XmppConnector.cs:line 446</div><br />
The last line is my code, a simple ConnectAsync<br />
<br />
<div class="code">var connected = await xmppClient.ConnectAsync().ConfigureAwait(false);</div><br />
I haven't looked at the Matrix code yet, but that shouldn't be happening, right?
]]></description>
            <author> no_email@example.com (humba)</author>
            <pubDate>Tue, 02 Nov 2021 08:22:37 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2180</guid>
        </item>
        <item>
            <title>Matrix vNext Console Client Error</title>
            <link>https://forum.ag-software.net/thread/2179-Matrix-vNext-Console-Client-Error</link>
            <description><![CDATA[
I'm running the Console Client of Matrix vNext Net5 Branch and I get the following:<br />
At the call of await xmppClient.ConnectAsync();<br />
<div class="code">System.IO.IOException: 'Cannot determine the frame size or a corrupted frame was received.'<br />
This exception was originally thrown at this call stack:<br />
&nbsp;&nbsp;&nbsp; [External Code]<br />
&nbsp;&nbsp;&nbsp; Matrix.Transport.Socket.SocketTransport.InitTls(string) in SocketTransport.cs<br />
&nbsp;&nbsp;&nbsp; [External Code]<br />
&nbsp;&nbsp;&nbsp; Matrix.Transport.Socket.SocketTransport.ConnectAsync(string) in SocketTransport.cs<br />
&nbsp;&nbsp;&nbsp; [External Code]<br />
&nbsp;&nbsp;&nbsp; Matrix.XmppClient.ConnectAsync(System.Threading.CancellationToken) in XmppClient.cs<br />
&nbsp;&nbsp;&nbsp; [External Code]<br />
&nbsp;&nbsp;&nbsp; Matrix.XmppClient.ConnectAsync() in XmppClient.cs<br />
&nbsp;&nbsp;&nbsp; [External Code]<br />
&nbsp;&nbsp;&nbsp; ConsoleClient.Program.Main(string[]) in Program.cs</div><br />
Thanks,<br />
Nicholas
]]></description>
            <author> no_email@example.com (nir)</author>
            <pubDate>Tue, 31 Aug 2021 14:15:19 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2179</guid>
        </item>
        <item>
            <title>Xamarin Android Example Client not working</title>
            <link>https://forum.ag-software.net/thread/2178-Xamarin-Android-Example-Client-not-working</link>
            <description><![CDATA[
Hi, I'm trying to implement a Xamarin.Forms client using Matrix vNext.<br />
<br />
At first I used the example Xamarin.Android MiniClientAndroid, but I got:<br />
<div class="code">[libc] Access denied finding property "net.dns1"<br />
[libc] Access denied finding property "net.dns2"<br />
[libc] Access denied finding property "net.dns3"<br />
[libc] Access denied finding property "net.dns4"</div><br />
Then I tried using Matrix vNext, Matrix Services, Matrix Extensions nugget packages on a Xamarin Forms project.<br />
On UWP everything works as expected.<br />
On Android it isn't connecting and I get again:<br />
<div class="code">[libc] Access denied finding property "net.dns1"<br />
[libc] Access denied finding property "net.dns2"<br />
[libc] Access denied finding property "net.dns3"<br />
[libc] Access denied finding property "net.dns4"<br />
[libc] Access denied finding property "net.dns5"<br />
[libc] Access denied finding property "net.dns6"<br />
[libc] Access denied finding property "net.dns7"<br />
[libc] Access denied finding property "net.dns8"</div><br />
Example of my code:<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">async</span> Task InitMessagingService<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// setup XmppClient with some properties</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XmppClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmppClient</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Username <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;nrall&quot;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Password <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;testtest&quot;</span>,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XmppDomain <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;0day.im&quot;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// setting the resolver to use the Srv resolver is optional, but recommended</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HostnameResolver <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SrvNameResolver<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// connect so the server</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">await</span> XmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//// request roster (contact list). This is optional, </span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//// but most chat clients do this on startup</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> rosterIqResult <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">await</span> XmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">RequestRosterAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> rosterItems</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">=</span> rosterIqResult</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">Query</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">Cast</span><span style="color: #008000;">&lt;</span>Roster<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">GetRoster</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// enumerate over the items and build your contact list or GUI</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">var</span> ri <span style="color: #0600FF; font-weight: bold;">in</span> rosterItems<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// we use AutoMapper here to map the XMPP</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// rosterItem to our Contact ViewModel</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> contact <span style="color: #008000;">=</span> ri<span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">//contacts.AddOrReplace(contact, c =&gt; c.Jid == contact.Jid);</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Dump some info</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>$<span style="color: #666666;">&quot;Jid: {ri.Jid}&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>$<span style="color: #666666;">&quot;Name: {ri.Name}&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
</ol></div></div><br />
Any help is greatly appreciated.<br />
Nicholas
]]></description>
            <author> no_email@example.com (nir)</author>
            <pubDate>Wed, 25 Aug 2021 13:05:33 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2178</guid>
        </item>
        <item>
            <title>Ping Handler not working on vNext</title>
            <link>https://forum.ag-software.net/thread/2177-Ping-Handler-not-working-on-vNext</link>
            <description><![CDATA[
Cisco's UCCX 12.6 seems to be sending me pings after a certain amount of inactivity. Then cuts my connection after 30 seconds. So I suspect, it expects a response to these pings. Is there some facility I can use to automatically respond to these requests?<br />
I'm on vNext..<br />
<br />
@edit: found <a href="https://forum.ag-software.net/thread/2116-Handler-for-XMPP-Ping-request" title="https://forum.ag-software.net/thread/2116-Handler-for-XMPP-Ping-request ">https://forum.ag-software.net/thread/2116-Handler-for-XMPP…</a>, where it states that the ping handler is active by default. But, in my case, no response is being sent for an inbound ping.<br />
<br />
When I activate packet logging, I see this<br />
<br />
<div class="code"><div class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">15:54:38.212 0|Information|RECV: <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;iq</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;get&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;116-171&quot;</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;srvccx12.nxodev.intra&quot;</span></span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;pmgr_agentmonitoring@srvccx12.nxodev.intra/pmgr&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;ping</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;urn:xmpp:ping&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/iq<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">15:55:08.223 0|Information|RECV: <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/stream:stream<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
</ol></div></div><br />
I'm not seeing any SEND entries, so there's no response. Do I have to register the handler somehow?
]]></description>
            <author> no_email@example.com (humba)</author>
            <pubDate>Fri, 13 Aug 2021 13:55:15 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2177</guid>
        </item>
        <item>
            <title>Logging in when the login itself contains an @</title>
            <link>https://forum.ag-software.net/thread/2175-Logging-in-when-the-login-itself-contains-an</link>
            <description><![CDATA[
Has anybody managed to login when the loginname is in UPN format (userid@domain)? I'm trying to do this on a Cisco CIMP but am failing miserably. I suspect somehow my login gets turned into a userid@domain@presencedomain jid which of course is not a valid jid.
]]></description>
            <author> no_email@example.com (humba)</author>
            <pubDate>Mon, 28 Jun 2021 15:31:43 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2175</guid>
        </item>
        <item>
            <title>Trouble upgrading from MatriX to vNext</title>
            <link>https://forum.ag-software.net/thread/2174-Trouble-upgrading-from-MatriX-to-vNext</link>
            <description><![CDATA[
Hey friends,<br />
<br />
So I have been using the legacy MatriX client and have been enjoying it, but I am now looking to upgrade to MatriX vNext so that my company can purchase a commercial use license. The way the previous MatriX client was installed was by simply dropping a dll into our Unity Project source, and the person who did this installation is on longer at the company. <img src="https://forum.ag-software.net/unb_lib/designs/_smile/unb/sad.png" title=":(" alt=":(" style="vertical-align:middle;width:15px;height:15px;" class="smilie" /><br />
<br />
Based on my research, it seems like the only way to use MatriX vNext is through the use of a package manager called NuGet, but NuGet seems Windows specific and we do all of our development work on Mac. After a little digging, I was able to find a Unity-editor style client for NuGet and install the latest version of MatriX vNext!<br />
<br />
Sadly however, after squelching all of our incompatibility errors, I now get this:<br />
<br />
<a href="https://ibb.co/82zsvtq" title="https://ibb.co/82zsvtq">https://ibb.co/82zsvtq</a> &lt;- Image<br />
<br />
Does anyone have any experience with this issue? This has me stumped.<br />
<br />
<br />
<br />
I am considering trying to just pull in all the source code as raw files (using the MatriX source on git), including dependencies if I can't figure this out soon, but that seems so lame.
]]></description>
            <author> no_email@example.com (Reggie.Meisler)</author>
            <pubDate>Mon, 14 Jun 2021 23:48:43 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2174</guid>
        </item>
        <item>
            <title>Crash in a call to onMessage code</title>
            <link>https://forum.ag-software.net/thread/2173-Crash-in-a-call-to-onMessage-code</link>
            <description><![CDATA[
Hello,<br />
<br />
We have a problem, a crash, in our code when we receive an "OnMessage". This one:<br />
<br />
<div class="code">System.IO.FileLoadException<br />
&nbsp;&nbsp; en Logon.xmpp.xmppClient_OnMessage(System.Object, Matrix.Xmpp.Client.MessageEventArgs)<br />
&nbsp;&nbsp; en System.EventHandler`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)<br />
<br />
Información de la excepción: System.Reflection.TargetInvocationException</div><br />
Maybe it's a conflict with the .net platform?.<br />
<br />
Thanks in advance<br />
Joshua
]]></description>
            <author> no_email@example.com (joshuacosta)</author>
            <pubDate>Thu, 20 May 2021 09:32:00 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2173</guid>
        </item>
        <item>
            <title>Setting rich presence for Cisco IM&amp;Presence</title>
            <link>https://forum.ag-software.net/thread/2172-Setting-rich-presence-for-Cisco-IM-Presence</link>
            <description><![CDATA[
I'm using matrix.vNext with Cisco IM&amp;P (Version 11.5, but soon 12.5, too). I can connect, set basic presence, manage roaster and get presence notifications just fine.<br />
<br />
Where I'm having problem is rich presence. Cisco uses their own PIDF format - looks pretty much like the standard, but with some custom namespaces. Some examles can be seen in their dev guide <a href="https://d1nmyq4gcgsfi5.cloudfront.net/fileMedia/f4a5c1d3-e8c9-4a5c-ac6c-c68dedaa8f9f/Developer%20Guide%20for%20Cisco%20Unified%20CM%20IM%20&amp;%20Presence%2010.5.2.pdf" title="https://d1nmyq4gcgsfi5.cloudfront.net/fileMedia/f4a5c1d3-e8c9-4a5c-ac6c-c68dedaa8f9f/Developer%20Guide%20for%20Cisco%20Unified%20CM%20IM%20&amp;%20Presence%2010.5.2.pdf">https://d1nmyq4gcgsfi5.cloudfront.net/fileMedia/f4a5c1d3-e…</a><br />
<br />
While I can send that rich presence just fine using this approach<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">var</span> xmppXElement <span style="color: #008000;">=</span> XmppXElement<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadXml</span><span style="color: #008000;">&#40;</span>richPresence<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">SendAsync</span><span style="color: #008000;">&#40;</span>xmppXElement<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ConfigureAwait</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">false</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
</ol></div></div><br />
the effects it has on the presence of the logged in user isn't what I'm expecting. Has anybody gotten this to work?
]]></description>
            <author> no_email@example.com (humba)</author>
            <pubDate>Sat, 03 Apr 2021 12:08:56 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2172</guid>
        </item>
        <item>
            <title>Getting ClientSocket Connection request failed from sample code I downloaded</title>
            <link>https://forum.ag-software.net/thread/2171-Getting-ClientSocket-Connection-request-failed-fr</link>
            <description><![CDATA[
I got your latest demo code, the code go the OnError method with an Errror:<br />
ClientSocket Connection request failed<br />
what am I doing wrong?<br />
<br />
<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Matrix.Xmpp</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Matrix.Xmpp.Client</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">namespace</span> SendMessage</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">class</span> Program</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">var</span> xmppClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmppClient</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;XmppDomain <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;traffictech.lan&quot;</span>,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Username <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;masjab&quot;</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Password <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;SomePassword&quot;</span>,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Port <span style="color: #008000;">=</span> <span style="color: #FF0000;">1080</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnError</span> <span style="color: #008000;">+=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> <span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">EventHandler</span><span style="color: #008000;">&lt;</span>Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">ExceptionEventArgs</span><span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span>xmppClient_OnError<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">OnRosterEnd</span> <span style="color: #008000;">+=</span> <span style="color: #6666cc; font-weight: bold;">delegate</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Send</span><span style="color: #008000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Message</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; To <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;perron@traffictech.lan&quot;</span>,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Type <span style="color: #008000;">=</span> MessageType<span style="color: #008000;">.</span><span style="color: #0000FF;">chat</span>,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Body <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Hello World&quot;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Open</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Press return key to exit the application&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">void</span> xmppClient_OnError<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> sender, Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">ExceptionEventArgs</span> e<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;xmppClient_OnError Fired &quot;</span> <span style="color: #008000;">+</span> e<span style="color: #008000;">.</span><span style="color: #0000FF;">Exception</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
</ol></div></div><br />
the debug trace shows this:<br />
[78476] InitSideBySide failed create an activation context. Error: 1814<br />
[76588] Client Verbose: 0 : <br />
[76588] Common model for csharp intellisense-members is cached. <br />
[76588] Client Verbose: 0 : <br />
[76588] Attempting to get team models for csharp intellisense-members at C:\Work\JabberMatrixSDKNET2\MatriX\samples\csharp\SendMessage\. <br />
[76588] Client Verbose: 0 : <br />
[76588] The path C:\Work\JabberMatrixSDKNET2\MatriX\samples\csharp\SendMessage\ does not belong to a Git repository, and cannot have any team models attached to it. <br />
[76588] Client Verbose: 0 : <br />
[76588] Common model for csharp intellisense-arguments is cached. <br />
[24924] InitSideBySide failed create an activation context. Error: 1814
]]></description>
            <author> no_email@example.com (rperetz)</author>
            <pubDate>Fri, 26 Mar 2021 21:14:02 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2171</guid>
        </item>
        <item>
            <title>Troubleshooting authentication in Matrix.vNext</title>
            <link>https://forum.ag-software.net/thread/2170-Troubleshooting-authentication-in-Matrix-vNext</link>
            <description><![CDATA[
I'm trying to use Matrix.vNext to connect to Cisco IM &amp; Presence.<br />
<br />
Cisco says the login has to be done following this pattern<br />
<br />
<blockquote class="quote"><div class="quote_inner">1) When an XMPP Client connects to Cisco Unified CM IM and Presence, the server will return <br />
the supported SASL authentication mechanisms in in stream features:<br />
<br />
<blockquote class="quote"><div class="quote_inner">&lt;mechanisms&gt;<br />
&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;<br />
&lt;mechanism&gt;CISCO_VTG_TOKEN&lt;/mechanism&gt;<br />
&lt;/mechanisms&gt;<br />
</div></blockquote><br />
2) The Client will reply to these SASL offering by sending an auth element that contains the SASL <br />
Plain mechanism and a Base64 encoding of the username and password. An example is <br />
shown below where “AGp1bGlldABwYXNzd29yZA==” is Base64 (user: juliet, password: <br />
password):<br />
<br />
<blockquote class="quote"><div class="quote_inner">&lt;auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'&gt;<br />
&nbsp;AGp1bGlldABwYXNzd29yZA==<br />
&lt;/auth&gt;<br />
</div></blockquote><br />
3) The Cisco Unified CM IM and Presence Authentication Component will parse the Base 64 <br />
encoded Username and Password pair received from Client for the User Id and password to <br />
search the database for a match. If there is no matching entry, Cisco Unified CM IM and <br />
Presence will respond to Client with an Authentication Failure ERROR<br />
<br />
4) The Cisco Unified CM IM and Presence Authentication Component will query the database for <br />
the license status of the User. If the User is not enabled, Cisco Unified CM IM and Presence<br />
will respond to the Client with an ERROR<br />
<br />
5) If the Authentication Component is able to retrieve a match the Authentication Component will <br />
reply with a SUCCESS message as follows:<br />
<br />
<blockquote class="quote"><div class="quote_inner">&lt;success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/&gt;</div></blockquote></div></blockquote><br />
I'm at the moment using the same code I'm using to connect to XMPP which works fine on Cisco Finesse<br />
<br />
<div class="code">&nbsp; &nbsp; xmppClient = new XmppClient()<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; {<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Username = XmppLogin,<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Password = XmppPassword,<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; XmppDomain = server,<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; //Resource = "web_framework",<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; HostnameResolver = new SrvNameResolver(), <br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; };<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; if (notificationConfiguration.AcceptAllCertificates)<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; xmppClient.CertificateValidator = new AlwaysAcceptCertificateValidator();</div><br />
Is there a way I can dump the messages being sent in/out to see what is going on behind the scenes?<br />
<br />
I'm seeing the connection state changing from<br />
Connected, Securing, Secure, Authenticating <br />
then I'm getting a Matrix.AuthenticationException with this stanza<br />
<br />
<div class="code">&lt;failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;<br />
&nbsp; &lt;not-authorized /&gt;<br />
&lt;/failure&gt;</div><br />
@edit: found an article about logging: <a href="https://matrix-xmpp.io/docs/logging/" title="https://matrix-xmpp.io/docs/logging/">https://matrix-xmpp.io/docs/logging/</a>. It seems out-of-date though as XmppClient doesn't have a constructor using an Action&lt;IChannelPipeline&gt;
]]></description>
            <author> no_email@example.com (humba)</author>
            <pubDate>Fri, 19 Mar 2021 16:43:18 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2170</guid>
        </item>
        <item>
            <title>iOS Crash in when sleep</title>
            <link>https://forum.ag-software.net/thread/2169-iOS-Crash-in-when-sleep</link>
            <description><![CDATA[
Hi,<br />
I'm getting a DotNetty exception (DotNetty.Transport.Channels.ClosedChannelException) being thrown that's causing a crash in iOS devices (not the simulator) and seems to be when the device/app wakes from (or possibly goes into) sleep.<br />
<br />
<br />
I don't know if this is an issue in DotNetty or Matrix.<br />
<br />
I've pasted the stack trace from App Centre in the hope that it can help?<br />
<br />
<div class="code">DotNetty.Transport.Channels.ClosedChannelException: I/O error occurred.<br />
&nbsp; at Matrix.Network.Handlers.KeepAliveHandler+&lt;&gt;c__DisplayClass4_0.&lt;ChannelActive&gt;b__0 (System.Object state) &lt;0x10a6ab320 + 0x001bf&gt; in &lt;2b86b82b658d4c92bfd52eb72504d791#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Runtime.CompilerServices.AsyncMethodBuilderCore+&lt;&gt;c.&lt;ThrowAsync&gt;b__7_1 (System.Object state) &lt;0x10537dfec + 0x00067&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) &lt;0x10531321c + 0x0005b&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) &lt;0x10530c784 + 0x0015f&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) &lt;0x10530c6c8 + 0x00043&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () &lt;0x10531317c + 0x00047&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Threading.ThreadPoolWorkQueue.Dispatch () &lt;0x1050ec530 + 0x001e7&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at ObjCRuntime.Runtime.ThreadPoolDispatcher (System.Func`1[TResult] callback) &lt;0x1062902a8 + 0x00053&gt; in &lt;11cf1cb643154f5dbbfae722322b4d57#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0<br />
&nbsp; at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () &lt;0x105313014 + 0x00077&gt; in &lt;26af7b5f4340497eaece2479b9ba2eee#e8cc3261e5c46375b4637f546f2e9a9c&gt;:0</div><br />
All the best,<br />
Paul.
]]></description>
            <author> no_email@example.com (pcharlton@carbonlabs.co.uk)</author>
            <pubDate>Tue, 09 Mar 2021 11:39:15 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2169</guid>
        </item>
        <item>
            <title>MatriX vNext Join MUC room</title>
            <link>https://forum.ag-software.net/thread/2168-MatriX-vNext-Join-MUC-room</link>
            <description><![CDATA[
Hello,<br />
I wanted to try the MatriX vNext library for writing XMPP bot. I managed to get connecting to a server working, and I can also send messages to individual users.<br />
<br />
I would like to know how can I join room (muc) and send/recieve messages in the room.<br />
<br />
Thanks <img src="https://forum.ag-software.net/unb_lib/designs/_smile/unb/smile.png" title=":)" alt=":)" style="vertical-align:middle;width:15px;height:15px;" class="smilie" />
]]></description>
            <author> no_email@example.com (Zereges)</author>
            <pubDate>Tue, 09 Feb 2021 23:45:27 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2168</guid>
        </item>
        <item>
            <title>Upgrading from AGS_XMPP to MATRIX</title>
            <link>https://forum.ag-software.net/thread/2167-Upgrading-from-AGS-XMPP-to-MATRIX</link>
            <description><![CDATA[
Hi,<br />
<br />
I am working on evaluating an upgrade of our source code to use Matrix instead of AGS_XMPP.<br />
<br />
So far, I've manage to Login without too much problem, but when I try to subscribe to a node, I get disconnected by the Xmpp server.<br />
<br />
Here is the XML <b>that is working</b> (using AGS) :<br />
<br />
using PubSubManager.Subscribe(pubsubUrl, mainJid, mainJid, noeud);<br />
<br />
<div class="code"><div class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">XML OUT messages <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;iq</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;agsXMPP_19&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;set&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;pubsub.appli-c14-rec2s00.xxx.fr&quot;</span> <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;gen1104n@appli-c14-rec2s00.xxx.fr/messages&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pubsub</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://jabber.org/protocol/pubsub&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;subscribe</span> <span style="color: #000066;">node</span>=<span style="color: #ff0000;">&quot;/CRC/ARV/DOU/EQ01/CM_CRC_EASITEAM/Msg&quot;</span> <span style="color: #000066;">jid</span>=<span style="color: #ff0000;">&quot;gen1104n@appli-c14-rec2s00.xxx.fr/messages&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pubsub<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/iq<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
</ol></div></div><br />
Here is the XML <b>that is not working</b> (using Matrix) :<br />
<br />
using : PubSubManager.Subscribe(pubsubUrl, noeud, mainJid);<br />
<br />
<div class="code"><div class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">XML OUT messages <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;iq</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;MX_7&quot;</span> <span style="color: #000066;">to</span>=<span style="color: #ff0000;">&quot;pubsub.appli-c14-rec2s00.xxx.fr&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;set&quot;</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;jabber:client&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pubsub</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://jabber.org/protocol/pubsub&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;subscribe</span> <span style="color: #000066;">node</span>=<span style="color: #ff0000;">&quot;/CRC/ARV/DOU/EQ01/CM_CRC_EASITEAM/Msg&quot;</span> <span style="color: #000066;">jid</span>=<span style="color: #ff0000;">&quot;gen1104n@appli-c14-rec2s00.xxx.fr/messages&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pubsub<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/iq<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
</ol></div></div>I'm get a OnStreamError from the Xmpp client con with the following XML :<br />
<br />
args.Error = <div class="code"><div class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;stream:error</span> <span style="color: #000066;">xmlns:stream</span>=<span style="color: #ff0000;">&quot;http://etherx.jabber.org/streams&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> &nbsp;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;invalid-xml</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;urn:ietf:params:xml:ns:xmpp-streams&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/stream:error<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li>
</ol></div></div><br />
Why is there no more the "from" tag in the subscribe ?<br />
Could the extra xmlns="jabber:client" cause a problem ?<br />
<br />
Any idea why I would receive "InvalidXml" ?<br />
<br />
Thanks in advance for your help.<br />
<br />
Régis
]]></description>
            <author> no_email@example.com (Regis)</author>
            <pubDate>Wed, 23 Dec 2020 16:40:24 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2167</guid>
        </item>
        <item>
            <title>Does the matrix vnext has any plan to add the socks proxy support?</title>
            <link>https://forum.ag-software.net/thread/2166-Does-the-matrix-vnext-has-any-plan-to-add-the-soc</link>
            <description><![CDATA[
I did not found the proxy setting on vnext, has any plan to implement it? Thanks
]]></description>
            <author> no_email@example.com (lampo)</author>
            <pubDate>Fri, 04 Dec 2020 08:51:46 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2166</guid>
        </item>
        <item>
            <title>Error calling SetLicense in .net core matriX 2.1.0.8</title>
            <link>https://forum.ag-software.net/thread/2165-Error-calling-SetLicense-in-net-core-matriX-2-1-0</link>
            <description><![CDATA[
I am trying to update to .net core but now when I call SetLicense I get the error listed below. I tried installing the System.Security.Cryptogropy package but it didn't help.<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #6666cc; font-weight: bold;">String</span> lic <span style="color: #008000;">=</span> <span style="color: #666666;">@&quot;MyLicense&quot;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">License</span><span style="color: #008000;">.</span><span style="color: #0000FF;">LicenseManager</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SetLicense</span><span style="color: #008000;">&#40;</span>lic<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
</ol></div></div><br />
<div class="code">(Error)<br />
Message=Could not load type 'System.Security.Cryptography.MD5Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.<br />
&nbsp; Source=Matrix<br />
&nbsp; StackTrace:<br />
&nbsp;&nbsp; at Matrix.Util.Hash.Md5HashBytes(Byte[] pass)<br />
&nbsp;&nbsp; at Matrix.License.License.Validate()<br />
&nbsp;&nbsp; at Matrix.License.LicenseManager.SetLicense(String lic)</div>
]]></description>
            <author> no_email@example.com (runfastman)</author>
            <pubDate>Fri, 13 Nov 2020 22:04:50 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2165</guid>
        </item>
        <item>
            <title>Using Matrix vNext in Azure</title>
            <link>https://forum.ag-software.net/thread/2164-Using-Matrix-vNext-in-Azure</link>
            <description><![CDATA[
We're looking to build our own XMPP server, and we're hosting our current server applications in Azure as web apps.&nbsp; I was hoping to stick with .NET as that's what we're using for everything else, and was wondering about the feasibility of using Matrix vNext (looking, for example, at the code here <a href="https://github.com/matrix-xmpp/matrix-vnext/blob/master/examples/Server/Program.cs" title="https://github.com/matrix-xmpp/matrix-vnext/blob/master/examples/Server/Program.cs">https://github.com/matrix-xmpp/matrix-vnext/blob/master/ex…</a>) as part of a .NET Core web application hosted in Azure to provide a scalable XMPP server.<br />
<br />
Are there any issues with this that people can foresee?&nbsp; Has anyone tried to do this before successfully?&nbsp; I see but one post mentioning this use case in the forum search I did, not providing much of an update on whether it was successful... but at least I wasn't the only one who ever considered the idea.&nbsp; <img src="https://forum.ag-software.net/unb_lib/designs/_smile/unb/wink.png" title=";-)" alt=";-)" style="vertical-align:middle;width:15px;height:15px;" class="smilie" />
]]></description>
            <author> no_email@example.com (jez9999)</author>
            <pubDate>Thu, 15 Oct 2020 18:12:04 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2164</guid>
        </item>
        <item>
            <title>XmppXElementStreamObserver does not trigger with new messages</title>
            <link>https://forum.ag-software.net/thread/2163-XmppXElementStreamObserver-does-not-trigger-with</link>
            <description><![CDATA[
Dear all,<br />
<br />
I am trying to use the XmppXElementStreamObserver to get new messages but its does not working.<br />
<br />
This is my code:<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">client<span style="color: #008000;">.</span><span style="color: #0000FF;">XmppXElementStreamObserver</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0600FF; font-weight: bold;">Where</span><span style="color: #008000;">&#40;</span>el <span style="color: #008000;">=&gt;</span> el <a href="http://www.google.com/search?q=is+msdn.microsoft.com"><span style="color: #008000;">is</span></a> Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">Xmpp</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Client</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">Subscribe</span><span style="color: #008000;">&#40;</span>el <span style="color: #008000;">=&gt;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; MessageBox<span style="color: #008000;">.</span><span style="color: #0000FF;">Show</span><span style="color: #008000;">&#40;</span>el<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">I tried <span style="color: #0600FF; font-weight: bold;">this</span> too<span style="color: #008000;">:</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">client<span style="color: #008000;">.</span><span style="color: #0000FF;">XmppXElementStreamObserver</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">.</span><span style="color: #0000FF;">Subscribe</span><span style="color: #008000;">&#40;</span>el <span style="color: #008000;">=&gt;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; MessageBox<span style="color: #008000;">.</span><span style="color: #0000FF;">Show</span><span style="color: #008000;">&#40;</span>el<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
</ol></div></div><br />
The another user is receiving my messages without problems but I am not seeing the response.<br />
<br />
I am using the Matriz.vNext v2.4.5.<br />
<br />
What is the problem?
]]></description>
            <author> no_email@example.com (Eduardo)</author>
            <pubDate>Wed, 30 Sep 2020 14:51:38 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2163</guid>
        </item>
        <item>
            <title>Changelog for Matrix xmpp sdk</title>
            <link>https://forum.ag-software.net/thread/2162-Changelog-for-Matrix-xmpp-sdk</link>
            <description><![CDATA[
Hi,<br />
<br />
Can you please provide the change log between 2.1.05 and 2.1.0.8? The one at the link in get started page stops at 2.1.0.5.<br />
<br />
JF
]]></description>
            <author> no_email@example.com (jf)</author>
            <pubDate>Thu, 03 Sep 2020 17:44:14 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2162</guid>
        </item>
        <item>
            <title>Matrix Xmpp: Xamarin Forms issue while sending message or closing connection</title>
            <link>https://forum.ag-software.net/thread/2159-Matrix-Xmpp-Xamarin-Forms-issue-while-sending-mes</link>
            <description><![CDATA[
I am implementing chat functionality in a Xamarin forms application. Connection to the chat server, user subscription, presence subscription and even message receiving is working smoothly. But while trying to send a message or disconnect a connection, the method execution stuck and it won't be successful. Once a message is received (Sending from Gajim windows client) the execution continues from xmppClient.Send()/xmppClient.Close() calls.&nbsp; I tried it from both Android and iOS applications and the behavior is the same. I also tested the sample app (<a href="https://gitlab.com/matrix-xmpp/samples/-/tree/master/csharp/MiniClientAndroid" title="https://gitlab.com/matrix-xmpp/samples/-/tree/master/csharp/MiniClientAndroid">https://gitlab.com/matrix-xmpp/samples/-/tree/master/cshar…</a>)&nbsp; and its the same behavior, method execution stuck in xmppClient.Close() and only executes further once a message is received. <br />
<br />
I am having latest xamarin SDKs <br />
<br />
<span style="color:crimson">Xamarin iOS - 13.18.3.2</span><br />
<span style="color:crimson">Xamarin Android - 10.3.1.4</span><br />
<br />
Another thing I noticed is that the same code I written works when building from another machine which is having lower version of Xamarin iOS SDK, sending message was working fine. But having issues to send message from Android app which is built from that machine. The Xamarin iOS SDK version in that machine is<br />
<br />
<span style="color:crimson">Xamarin iOS - 13.6.0.12</span><br />
<br />
Is there any compatibility issue with latest Xamarin SDKs? Please advise how to resolve this issue. <br />
<br />
<b>Below are the logs.</b><br />
PS: OnSendMessage it would log as sending message, but it would get delivered and method execution continues only when a message is received in my app.<br />
<br />
<div class="code">14:35:45.844 D/ChatService: XmppOnSendMessage:&lt;stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="server.address.com" version="1.0" &gt;: <br />
14:35:46.142 D/ChatService: XmppOnXmlReceiveMessage:&lt;stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="5041239102440826853" version="1.0" xml:lang="en" from="server.address.com" xmlns="jabber:client" &gt;: <br />
14:35:46.157 D/ChatService: XmppOnXmlReceiveMessage:&lt;stream:features xmlns:stream="http://etherx.jabber.org/streams"&gt;<br />
14:35:46.157 D/ChatService:&nbsp;&nbsp; &lt;starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"&gt;<br />
14:35:46.157 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;required /&gt;<br />
14:35:46.157 D/ChatService:&nbsp;&nbsp; &lt;/starttls&gt;<br />
14:35:46.157 D/ChatService: &lt;/stream:features&gt;: <br />
14:35:46.167 D/ChatService: XmppOnSendMessage:&lt;starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" /&gt;: <br />
14:35:46.428 D/ChatService: XmppOnXmlReceiveMessage:&lt;proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" /&gt;: <br />
14:35:47.268 D/ChatService: XmppOnSendMessage:&lt;stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="server.address.com" version="1.0" &gt;: <br />
14:35:47.547 D/ChatService: XmppOnXmlReceiveMessage:&lt;stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="18057076616736662190" version="1.0" xml:lang="en" from="server.address.com" xmlns="jabber:client" &gt;: <br />
14:35:47.550 D/ChatService: XmppOnXmlReceiveMessage:&lt;stream:features xmlns:stream="http://etherx.jabber.org/streams"&gt;<br />
14:35:47.550 D/ChatService:&nbsp;&nbsp; &lt;mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;PLAIN&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;SCRAM-SHA-1&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;X-OAUTH2&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp;&nbsp; &lt;/mechanisms&gt;<br />
14:35:47.550 D/ChatService:&nbsp;&nbsp; &lt;register xmlns="http://jabber.org/features/iq-register" /&gt;<br />
14:35:47.550 D/ChatService: &lt;/stream:features&gt;: <br />
14:35:47.550 D/ChatService: XmppOnStreamFeatures: &lt;stream:features xmlns:stream="http://etherx.jabber.org/streams"&gt;<br />
14:35:47.550 D/ChatService:&nbsp;&nbsp; &lt;mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;PLAIN&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;SCRAM-SHA-1&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;mechanism&gt;X-OAUTH2&lt;/mechanism&gt;<br />
14:35:47.550 D/ChatService:&nbsp;&nbsp; &lt;/mechanisms&gt;<br />
14:35:47.550 D/ChatService:&nbsp;&nbsp; &lt;register xmlns="http://jabber.org/features/iq-register" /&gt;<br />
14:35:47.550 D/ChatService: &lt;/stream:features&gt;<br />
14:35:47.572 D/ChatService: XmppOnSendMessage:&lt;auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;XXXXX&lt;/auth&gt;: <br />
14:35:47.837 D/ChatService: XmppOnXmlReceiveMessage:&lt;success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /&gt;: <br />
14:35:47.843 D/ChatService: xmppClient_OnLogin: Matrix.EventArgs<br />
14:35:47.844 D/ChatService: XmppOnSendMessage:&lt;stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="server.address.com" version="1.0" &gt;: <br />
14:35:48.107 D/ChatService: XmppOnXmlReceiveMessage:&lt;stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="8809054255882851270" version="1.0" xml:lang="en" from="server.address.com" xmlns="jabber:client" &gt;: <br />
14:35:48.112 D/ChatService: XmppOnXmlReceiveMessage:&lt;stream:features xmlns:stream="http://etherx.jabber.org/streams"&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" /&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;session xmlns="urn:ietf:params:xml:ns:xmpp-session"&gt;<br />
14:35:48.112 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;optional /&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;/session&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;c ver="NqMDrgCx03HLh3URMusgDnNsR30=" node="http://www.process-one.net/en/ejabberd/" hash="sha-1" xmlns="http://jabber.org/protocol/caps" /&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;sm xmlns="urn:xmpp:sm:2" /&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;sm xmlns="urn:xmpp:sm:3" /&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;ver xmlns="urn:xmpp:features:rosterver" /&gt;<br />
14:35:48.112 D/ChatService:&nbsp;&nbsp; &lt;csi xmlns="urn:xmpp:csi:0" /&gt;<br />
14:35:48.112 D/ChatService: &lt;/stream:features&gt;: <br />
14:35:48.127 D/ChatService: XmppOnSendMessage:&lt;iq id="MX_1" type="set" xmlns="jabber:client"&gt;<br />
14:35:48.127 D/ChatService:&nbsp;&nbsp; &lt;bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"&gt;<br />
14:35:48.127 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;resource&gt;MatriX-for-Android&lt;/resource&gt;<br />
14:35:48.127 D/ChatService:&nbsp;&nbsp; &lt;/bind&gt;<br />
14:35:48.127 D/ChatService: &lt;/iq&gt;: <br />
14:35:48.397 D/ChatService: XmppOnXmlReceiveMessage:&lt;iq type="result" id="MX_1" xmlns="jabber:client"&gt;<br />
14:35:48.397 D/ChatService:&nbsp;&nbsp; &lt;bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"&gt;<br />
14:35:48.397 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;jid&gt;jack@server.address.com/MatriX-for-Android&lt;/jid&gt;<br />
14:35:48.397 D/ChatService:&nbsp;&nbsp; &lt;/bind&gt;<br />
14:35:48.397 D/ChatService: &lt;/iq&gt;: <br />
14:35:48.411 D/ChatService: XmppOnSendMessage:&lt;iq to="server.address.com" type="set" id="sess_1"&gt;<br />
14:35:48.411 D/ChatService:&nbsp;&nbsp; &lt;session xmlns="urn:ietf:params:xml:ns:xmpp-session" /&gt;<br />
14:35:48.411 D/ChatService: &lt;/iq&gt;: <br />
14:35:48.415 D/ChatService: XmppOnSendMessage:&lt;enable resume="true" xmlns="urn:xmpp:sm:3" /&gt;: <br />
14:35:48.423 D/ChatService: XmppOnSendMessage:&lt;iq id="MX_2" type="get" xmlns="jabber:client"&gt;<br />
14:35:48.423 D/ChatService:&nbsp;&nbsp; &lt;query xmlns="jabber:iq:roster" /&gt;<br />
14:35:48.423 D/ChatService: &lt;/iq&gt;: <br />
14:35:48.670 D/ChatService: XmppOnXmlReceiveMessage:&lt;iq xml:lang="en" to="jack@server.address.com/MatriX-for-Android" from="server.address.com" type="result" id="sess_1" xmlns="jabber:client" /&gt;: <br />
14:35:48.670 D/ChatService: &lt;&lt;&lt;&lt;&lt;Session established&gt;&gt;&gt;&gt;&gt;<br />
14:35:48.673 D/ChatService: XmppOnSendMessage:&lt;presence type="subscribe" to="harry@server.address.com" id="MX_3" xmlns="jabber:client" /&gt;: <br />
14:35:48.673 D/ChatService: SubscribeUser sent:harry@server.address.com<br />
14:35:48.675 D/ChatService: XmppOnXmlReceiveMessage:&lt;enabled resume="true" max="300" id="g2gCbQAAABJNYXRyaVgtZm9yLUFuZHJvaWRoA2IAAAY7YgAI365iAAABkA==" xmlns="urn:xmpp:sm:3" /&gt;: <br />
14:35:48.688 D/ChatService: XmppOnXmlReceiveMessage:&lt;iq xml:lang="en" to="jack@server.address.com/MatriX-for-Android" from="jack@server.address.com" type="result" id="MX_2" xmlns="jabber:client"&gt;<br />
14:35:48.688 D/ChatService:&nbsp;&nbsp; &lt;query xmlns="jabber:iq:roster"&gt;<br />
14:35:48.688 D/ChatService:&nbsp; &nbsp;&nbsp; &lt;item subscription="both" jid="harry@server.address.com" /&gt;<br />
14:35:48.688 D/ChatService:&nbsp;&nbsp; &lt;/query&gt;<br />
14:35:48.688 D/ChatService: &lt;/iq&gt;: <br />
14:35:48.694 D/ChatService: XmppOnSendMessage:&lt;presence xmlns="jabber:client"&gt;<br />
14:35:48.694 D/ChatService:&nbsp;&nbsp; &lt;show&gt;chat&lt;/show&gt;<br />
14:35:48.694 D/ChatService:&nbsp;&nbsp; &lt;status&gt;&lt;/status&gt;<br />
14:35:48.694 D/ChatService:&nbsp;&nbsp; &lt;priority&gt;0&lt;/priority&gt;<br />
14:35:48.694 D/ChatService: &lt;/presence&gt;: <br />
14:35:48.697 D/ChatService: XmppOnXmlReceiveMessage:&lt;r xmlns="urn:xmpp:sm:3" /&gt;: <br />
14:35:48.700 D/ChatService: XmppOnSendMessage:&lt;a h="1" xmlns="urn:xmpp:sm:3" /&gt;: <br />
14:35:48.957 D/ChatService: XmppOnXmlReceiveMessage:&lt;presence xml:lang="en" to="jack@server.address.com/MatriX-for-Android" from="jack@server.address.com/MatriX-for-Android" xmlns="jabber:client"&gt;<br />
14:35:48.957 D/ChatService:&nbsp;&nbsp; &lt;x xmlns="vcard-temp:x:update" /&gt;<br />
14:35:48.957 D/ChatService:&nbsp;&nbsp; &lt;priority&gt;0&lt;/priority&gt;<br />
14:35:48.957 D/ChatService:&nbsp;&nbsp; &lt;show&gt;chat&lt;/show&gt;<br />
14:35:48.957 D/ChatService:&nbsp;&nbsp; &lt;status /&gt;<br />
14:35:48.957 D/ChatService: &lt;/presence&gt;: <br />
14:35:48.966 D/ChatService: XmppOnXmlReceiveMessage:&lt;r xmlns="urn:xmpp:sm:3" /&gt;: <br />
14:35:48.966 D/ChatService: XmppOnSendMessage:&lt;a h="2" xmlns="urn:xmpp:sm:3" /&gt;: <br />
14:35:55.333 D/ChatService: XmppOnSendMessage:&lt;message to="harry@server.address.com" from="jack@server.address.com/MatriX-for-Android" type="chat" id="4b7afe63-3f6c-4191-8270-303e664a6eb7" xml:lang="en" xmlns="jabber:client"&gt;<br />
14:35:55.333 D/ChatService:&nbsp;&nbsp; &lt;body&gt;Thank you! I am over it now.&lt;/body&gt;<br />
14:35:55.333 D/ChatService:&nbsp;&nbsp; &lt;active xmlns="http://jabber.org/protocol/chatstates" /&gt;<br />
14:35:55.333 D/ChatService:&nbsp;&nbsp; &lt;origin-id id="4b7afe63-3f6c-4191-8270-303e664a6eb7" xmlns="urn:xmpp:sid:0" /&gt;<br />
14:35:55.333 D/ChatService: &lt;/message&gt;:</div>
]]></description>
            <author> no_email@example.com (sathyajithr.dev)</author>
            <pubDate>Thu, 30 Jul 2020 16:11:02 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2159</guid>
        </item>
        <item>
            <title>Matrix vNext - Operation Timeout Error</title>
            <link>https://forum.ag-software.net/thread/2157-Matrix-vNext-Operation-Timeout-Error</link>
            <description><![CDATA[
Hello,<br />
<br />
xmppClient object is failing to connect to Cisco Finesse and give an error - Operation Timeout Error. Below is the code snippet.&nbsp; This code works fine in a console application, but same is not working from a WPF Application (4.6.1 Framework version).&nbsp; Not sure if i need to add any additional reference.<br />
<br />
<div class="code"><div class="csharp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">xmppClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmppClient<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Username <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span>_username,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; Password <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span>_password,</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; XmppDomain <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span>_serverName,</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; HostnameResolver <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SrvNameResolver<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">CertificateValidator</span> <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> AlwaysAcceptCertificateValidator<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SubscribeForSessionStateChange</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SubcribeForMessageChange</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SubcribeForPresenceChange</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">try</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">await</span> xmppClient<span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectAsync</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Matrix<span style="color: #008000;">.</span><span style="color: #0000FF;">AuthenticationException</span> ex<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; OnError<span style="color: #008000;">.</span><span style="color: #0000FF;">Invoke</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span>, ex<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception ex<span style="color: #008000;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#123;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; OnError<span style="color: #008000;">.</span><span style="color: #0000FF;">Invoke</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span>, ex<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000;">&#125;</span></div></li>
</ol></div></div>
]]></description>
            <author> no_email@example.com (dotnetnerd)</author>
            <pubDate>Thu, 07 May 2020 08:10:07 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2157</guid>
        </item>
        <item>
            <title>Matrix vNext: How to Subscribe for New Voice Call</title>
            <link>https://forum.ag-software.net/thread/2155-Matrix-vNext-How-to-Subscribe-for-New-Voice-Call</link>
            <description><![CDATA[
Hi,<br />
<br />
I am using Matrix vNext: How do I Subscribe to get Notification for new Call?&nbsp; I Subscribed for /User/{AgentId}, /User/{AgentId}/Dialogs - still dont get any event on incoming call or status of change in Cisco Finesse Agent Desktop.
]]></description>
            <author> no_email@example.com (dotnetnerd)</author>
            <pubDate>Mon, 13 Apr 2020 06:06:44 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2155</guid>
        </item>
        <item>
            <title>Enable message acknowledgment</title>
            <link>https://forum.ag-software.net/thread/2154-Enable-message-acknowledgment</link>
            <description><![CDATA[
Hi,<br />
<br />
I'm working on implementing a message receiving acknowledgment for the chat in Unity project. The problem is when user A sends a message to user B, user B will receive this message only when he is online or offline (when he becomes online). But if user B is disconnected, because of WIFI drop or any other reason, he won't receive the message, even after disconnect. So I decided to use XEP-0115 and XEP-0184, to fix this issue. <br />
<br />
When I init XmppClient, I set the following flags:<br />
<div class="code">&nbsp;&nbsp; Client.StreamResumption = true;<br />
&nbsp;&nbsp; Client.StreamManagement = true;</div><br />
And call RequestReceipt when I send a message<br />
<div class="code">&nbsp;&nbsp; message.RequestReceipt();</div><br />
Is it correct? <br />
<br />
When I receive a message, there is&nbsp; &lt;unreliable server="my_server" id="MX_26" xmlns="urn:<a href="xmpp:receipts" title="xmpp:receipts">xmpp:receipts</a>" /&gt; tag<br />
<div class="code">&lt;message to="jid_to" from="jid_from" id="MX_26" xmlns="jabber:client"&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;unreliable server="my_server" id="MX_26" xmlns="urn:xmpp:receipts" /&gt;<br />
&lt;/message&gt;</div><br />
As far as I understood it's an issue with XEP-0115 Entity Compatibility and the documentation says "Lack of ack support: The server says the receiver does not support ack, using the same message id attribute"<br />
<br />
Please can you guide me on how to fix it?
]]></description>
            <author> no_email@example.com (amerts)</author>
            <pubDate>Mon, 30 Mar 2020 17:07:40 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2154</guid>
        </item>
        <item>
            <title>Does the Matrix vNext implemented the XEP-0198?</title>
            <link>https://forum.ag-software.net/thread/2152-Does-the-Matrix-vNext-implemented-the-XEP-0198</link>
            <description><![CDATA[
Does the Matrix vNext implemented the XEP-0198? is there any example about it?
]]></description>
            <author> no_email@example.com (lampo)</author>
            <pubDate>Mon, 09 Mar 2020 06:37:40 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2152</guid>
        </item>
        <item>
            <title>Porting code to vNext</title>
            <link>https://forum.ag-software.net/thread/2151-Porting-code-to-vNext</link>
            <description><![CDATA[
I have a working solution using the old matrix lib that I need to bring into the .NET core world. So I swapped out the matrix libs and now I'm flailing trying to migrate my code.<br />
<br />
For instance, I'm using xmppClient.StreamActive to determine if an XmppClient has a connection or now. How does that translate to Matrix vNext?<br />
<br />
Similarly, I subscribed to a variety of OnXXXX events. Going by the sample for message subscription I managed to port OnMessage and OnPresence, but there's a bunch of other events I'm still struggling with: OnClose, OnError, OnStreamError, OnXmlError, OnAuthError. How do these translate?<br />
<br />
I'm also using the PubSubManager in the old lib and I haven't found a replacement there, either.
]]></description>
            <author> no_email@example.com (humba)</author>
            <pubDate>Mon, 03 Feb 2020 13:33:33 GMT</pubDate>
            <guid isPermaLink="false">https://forum.ag-software.net/2151</guid>
        </item>
    </channel>
</rss>
