powered by Jive Software

How can I recieve the message from the Spark Client?

I want use “addMessageListener” to listen the message,but I don’'t know how to do it


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.

  1. Create a class that implements the PacketListener interface. This class will listen out for Message Packets and react accordingly.

  2. Add this class to your connection.