1 |
// basic send message example |
2 |
var xmppClient = new XmppClient {XmppDomain = "jabber.org" , |
3 |
Username = "user1" , Password = "secret" }; |
4 |
xmppClient.OnRosterEnd += delegate {xmppClient.Send( |
5 |
new Message {To = "user2@jabber.org" , Type = MessageType.chat, Body = "Hello World" });}; |
6 |
xmppClient.Open(); |
项目地址: http://www.ag-software.de/matrix-xmpp-sdk/