powered by Jive Software

Message listener package check


#1

Hi,

can someone confirm for me that IncomingChatMessageListener from package
org.jivesoftware.smack.chat2 is the right one to use to listen for incoming messages?

All of the posts I can find here and elsewhere, look to be using depreciated functions to do this

Best Regards
pheonixfire


#2

It is one way to listen for incoming messages. Whether or not if it is the right one depends on what you want to do. But in general, it is a good starting point.


#3

thanks for getting back to me, I can see the intended use for the from and message variables,
however I can’t work out what the chat variable is being used for in this function

Best Regards
pheonixfire


closed #4

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.