In a local Node setup you'll need to set up a web application to receive the incoming messages. And then tunnel to that local application using something like ngrok.
Check out this tutorial that shows how to receive SMS in Node. The process for SMS and WhatsApp messages is the same.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How do you listen for incoming messages in a local node setup?
In a local Node setup you'll need to set up a web application to receive the incoming messages. And then tunnel to that local application using something like ngrok.
Check out this tutorial that shows how to receive SMS in Node. The process for SMS and WhatsApp messages is the same.