Learn how to handle events using the Wapi.js SDK
on
method available on the client class. Here is an example of how you can listen to incoming messages and reply/react to them:
reply
, react
etc. which can be used to reply or react to the incoming messages.