hi,
I am a beginner to jabber-net. I want to make a Gtalk Client
application.
The problem I am facing is that I am unable to generate a notification
that the person I am conversing with is typing a message!
I was successful in displaying "is writing message" on the side of the
person I am conversing to!
I used the XEP-85 to do so, here is the code:-
public void SendIsTypingMessage(string Reciever)
{
jabber.protocol.client.Message msg = new
jabber.protocol.client.Message(XmppCon.Document);
msg.AddChild(XmppCon.Document.CreateElement("composing",
"
http://jabber.org/protocol/chatstates"));
msg.Type = jabber.protocol.client.MessageType.chat;
msg.To = new JID(Reciever);
XmppCon.Write(msg);
}
public void SendTypingFinished(string Reciever)
{
jabber.protocol.client.Message msg = new
jabber.protocol.client.Message(XmppCon.Document);
msg.AddChild(XmppCon.Document.CreateElement("active",
"
http://jabber.org/protocol/chatstates"));
msg.Type = jabber.protocol.client.MessageType.chat;
msg.To = new JID(Reciever);
XmppCon.Write(msg);
}
The code works fine, but I am unable to do the same on my side!
Please help me
thanks!
sincerly,
Antriksh Mathur