Node for Max API method [addHandlers] example from documentation
Did anyone tried to implement this example from n4m documentation?
https://docs.cycling74.com/nodeformax/api/module-max-api.html#.addHandlers
I haven't been able to figure out and understand the following errors:

Any Node/Javascript/Max expert out there?
I'm trying to figure how to use this API, but I have low experience in coding.
Thank you
Your error report seems to suggest that there is something undefined in the first 4 lines of MESS.js... Maybe you can examine that until an expert responds.
Yeah, I had to modify the example code to get it to work for me.
The variable name used to include the API needs to be prepended to the type (sorry, I don't know all the correct terminology).
So, assuming that you're running the example code unchanged otherwise, MESSAGE_TYPES.BANG needs to be changed to maxAPI.MESSAGE_TYPES.BANG.
I believe that's all that I changed to get it to work.