Is there a way to check whether there is a new coming message?

Hi, all

Instead of the XMPP client, is there a way (like a API call, or DB query) to check there is any new incoming message to a user? Or there are 2 XMPP clients running in the same time to retrieve message?

Many Thanks.

From BillChan.

You can write a simple plugin that intercepts incoming packets. Just implement PacketInterceptor interface.

Thanks, with your suggestion, i got a starting point to look into and solved my problem.

And i also found that, the only way to let a user login into different clients in the same time, is having different resource names in the clients. PacketInterceptor,