Subject: Matrix vNext
Hey Alex,
We are using Matrix vNext package in .Net Standard project. We are able to connect to server and send message. But we don't find documentation on how to receive message. It would be great if you post some sample regarding this. Below is code snippet we are using just for reference.
We are using Matrix vNext package in .Net Standard project. We are able to connect to server and send message. But we don't find documentation on how to receive message. It would be great if you post some sample regarding this. Below is code snippet we are using just for reference.
- App.xmppClient.Username = "XXXX";
- App.xmppClient.Password = "password";
- App.xmppClient.XmppDomain = "XXXX-XXX-XX.sobis.com";
- if (Device.OS == TargetPlatform.Windows)
- {
- App.xmppClient.Port = 5222;
- App.xmppClient.Tls = false;
- }
- await App.xmppClient.ConnectAsync();
- await App.xmppClient.SendPresenceAsync(Show.Chat, "free for chat");
- var msg = new Matrix.Xmpp.Client.Message { Type = MessageType.Chat, To = "XX@XXXX-XXX-XX.sobis.com", Body = "Message hello" };
- await App.xmppClient.SendAsync(msg);