How to implement isTyping Status in XMPP ejabbered for pubsub node using Smack

Hello,
I am implementing chat application and I have add isTyping feature like whats app Application.
So, How to implement isTyping Status in XMPP ejabbered for pubsub node using Smack.

In a chat you would use https://xmpp.org/extensions/xep-0085.html which is implemented in the ChatStateManager class. I’m not sure why you want to use pubsub though.