xmpp - ProcessMessage function is not workin in smackapi -


i trying use smack api provide chat functionality between 2 different projects. both side able send message. due problem not able receive message on both side. think process-message function not working properly. how make work properly.

my xmppconnection.debug_enabled = true; working properly, can see message sent , received via google talk. can process received message..thank in advance...

public void processmessage(chat chat, message message) {             if (message.gettype() == message.type.chat){             system.out.println(chat.getparticipant() + " says:" + message.getbody());             string cmdmsg = message.getbody();             system.out.println(cmdmsg);         } 


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -