I want use “addMessageListener” to listen the message,but I don’'t know how to do it
Thinks
I want use “addMessageListener” to listen the message,but I don’'t know how to do it
Thinks
Well this topic has been covered lots of times already and a quick search would have revealed what you’'re looking for
But basically you need to do the following.
Create a class that implements the PacketListener interface. This class will listen out for Message Packets and react accordingly.
Add this class to your connection.
hth