pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

Sharp sample code is not sending message #11

Closed rashkat closed 8 years ago

rashkat commented 8 years ago

Hello I just started using sharp. I was trying to run a sample code however I am not able to send any message through this one. I am able to receive messages though.

Code runs absolutely without error but no message got sent. I have tried to debug the code and doubt on following code from Sharp.Xmpp.Im.XmppIm class

public void SendMessage(Message message) { AssertValid(); message.ThrowIfNull("message"); // "Stamp" the sender's JID onto the message. message.From = Jid; // Invoke IOutput Plugins. foreach (var ext in extensions) { var filter = ext as IOutputFilter; if (filter != null) filter.Output(message); ################ control never goes to this line. so I think there is no ext available for IOutputFilter ?? I am not sure though as core.SendMessage works fine. I am pretty new to XMPP world so please bare with me if its a silly question.... ################ } core.SendMessage(message); }

Early help/reply is appreciable as I need to decide on opensource c# xmpp library as soon as possible.

Regards, Rashmi

rashkat commented 8 years ago

Hey I am able to send message. I was using rashmi as jid whereas it needs full user name like rashmi@serverhost.com

Thanks anyways. I would be requiring lot of help in this journey, hope can go ahead with this one.

Wish you and your team a very Happy New Year 2016 ahead!!

cheers Rashmi

pgstath commented 8 years ago

Hi @rashkat , Happy new year, I will be around to help if I can:)!