Subject: Question on Getting Started
Hello!
I'm trying out this library, but I have been struggling with trying to start a connection.
I have an eval license and managed to get your demo Android client up and running. It can make connections successfully with some public xmpp servers that I have been using.
I am trying to replicate what your client and tutorial posted online, but I keep getting an exception thrown when I try to open a connection.
---> (Inner Exception #0) System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
Here is what I have:
Thank you ahead of time, I appreciate any assistance that you can give me. Let me know if you need any additional information.
I'm trying out this library, but I have been struggling with trying to start a connection.
I have an eval license and managed to get your demo Android client up and running. It can make connections successfully with some public xmpp servers that I have been using.
I am trying to replicate what your client and tutorial posted online, but I keep getting an exception thrown when I try to open a connection.
---> (Inner Exception #0) System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
Here is what I have:
- using System;
- using Synergy;
- using Synergy.iOS;
- using Matrix.Xmpp;
- using static Synergy.MatrixDependencyService;
- using Matrix.Xmpp.Client;
- using Matrix.License;
- namespace Synergy.iOS
- {
- public class MatrixImplementation : IMatrixDependencyService
- {
- void XmppClient_OnLogin(object sender, Matrix.EventArgs e)
- {
- Console.WriteLine("Login");
- }
- void XmppClient_OnError(object sender, Matrix.ExceptionEventArgs e)
- {
- Console.WriteLine(e.Exception);
- }
- public MatrixImplementation() { }
- string lic = @"I Have a license here";
- void IMatrixDependencyService.Connect()
- {
- xmppClient.OnError += XmppClient_OnError;
- xmppClient.OnLogin += XmppClient_OnLogin;
- try
- {
- Matrix.License.LicenseManager.SetLicense(lic);
- xmppClient.Username = "myusername";
- xmppClient.XmppDomain = "randomDomain.com" ;
- xmppClient.Password = "password";
- xmppClient.Status = "Hello World";
- xmppClient.Show = Matrix.Xmpp.Show.Chat;
- xmppClient.Open();
- }
- catch (Exception err)
- {
- Console.WriteLine(err.Message);
- }
- }
- void IMatrixDependencyService.Disconnect()
- {
- xmppClient.Close();
- }
- }
- }
Thank you ahead of time, I appreciate any assistance that you can give me. Let me know if you need any additional information.