powered by Jive Software

Chat - send and recieve

Dear members,

Can someone give me an example code for recieving chat messages? I have written a code for sending message. The main problem I face is, I am able to recieve a message only when I initiate a chat with the sender who sends the message.

The structure of packetlistener and packetcollector etc seem to be pretty confusing for a newbie like me.

Any help would be appreciated

Hi Vimal,

Did you try looking at the url=http://www.jivesoftware.org/builds/smack/docs/latest/documentation/documentation[/url]? Here’'s a link to some sample code:

http://www.jivesoftware.org/builds/smack/docs/latest/documentation/processing.ht ml

You can also try looking at a simple ParrotBot that I wrote a year ago:


Hope that helps,