Detecting messages with Node.JS

I’m not sure what you mean. How do I go about it then if your code isn’t supposed to work?