Subject: Convert from agsXMPP to Matrix
Hello,
I recently started using Matrix for facebook, which now works (thanks Alex!). However, I'm also implementing XMPP for another socialnetwork site (Hyves, if anyone is familiar) and I'm having trouble getting the same response when converting my code from an agsxmpp to a Matrix implementation.
Both agsXMPP and Matrix get the following;
Matrix then receives;
agsXMPP however continues with the procedure.
Why is my result different with Matrix?
Complete (relevant) code:
agsXMPP:
Matrix:
I recently started using Matrix for facebook, which now works (thanks Alex!). However, I'm also implementing XMPP for another socialnetwork site (Hyves, if anyone is familiar) and I'm having trouble getting the same response when converting my code from an agsxmpp to a Matrix implementation.
Both agsXMPP and Matrix get the following;
- <stream:features xmlns:stream="http://etherx.jabber.org/streams">
- <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
- <mechanism>DIGEST-MD5</mechanism>
- </mechanisms>
- <auth xmlns="http://jabber.org/features/iq-auth" />
- </stream:features>
Matrix then receives;
- <stream:error xmlns:stream="http://etherx.jabber.org/streams">
- <connection-timeout xmlns="urn:ietf:params:xml:ns:xmpp-streams" />
- </stream:error>
agsXMPP however continues with the procedure.
- <iq id="agsXMPP_33" type="get" to="94.100.119.196"><query xmlns="jabber:iq:auth"><username>vince83</username></query></iq>
- <iq xmlns="jabber:client" type="result" id="agsXMPP_33">
- <query xmlns="jabber:iq:auth">
- <username />
- <digest />
- <resource />
- </query>
- </iq>
Why is my result different with Matrix?
Complete (relevant) code:
agsXMPP:
- xmpp.UseSSL = false;
- xmpp.UseStartTLS = false;
- xmpp.Username = chatResult.Username;
- xmpp.Password = chatResult.Token;
- xmpp.ConnectServer = chatResult.Ip;
- xmpp.Server = chatResult.Ip;
- xmpp.Port = chatResult.Port;
- xmpp.AutoRoster = true;
- xmpp.Show = ShowType.dnd;
- xmpp.Resource = "VincentTestApp";
- xmpp.UseCompression = false;
- xmpp.Priority = 1;
- xmpp.KeepAlive = false;
- xmpp.KeepAliveInterval = 1;
- xmpp.Open();
- ##################
- void xmpp_OnSaslStart(object sender, SaslEventArgs args) {
- args.Auto = false;
- args.Mechanism = agsXMPP.protocol.sasl.Mechanism.GetMechanismName(agsXMPP.protocol.sasl.MechanismType.NONE);
- }
Matrix:
- xmppClient.SetXmppDomain(chatResult.Ip);
- xmppClient.Port = chatResult.Port;
- xmppClient.SetUsername(chatResult.Username);
- xmppClient.SetResource("VincentTestApp");
- xmppClient.Password = chatResult.Token;
- xmppClient.Status = "Online";
- xmppClient.Show = Matrix.Xmpp.Show.dnd;
- xmppClient.Priority = 1;
- xmppClient.KeepAliveInterval = -1;
- xmppClient.StartTls = false;
- xmppClient.Compression = false;
- xmppClient.AutoRoster = true;
- xmppClient.OnBeforeSasl += new EventHandler<Matrix.Xmpp.Sasl.SaslEventArgs>(xmppClient_OnBeforeSasl);
- xmppClient.Open();
- ####################
- void xmppClient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) {
- e.Auto = false;
- e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.NONE;
- }