Node red custom websocket how to handle connections

Hi VIKRAMAS, I have a need for dynamic websocket's and "followed" your code to create the custom node. However, I get error [object Object] after I add the node ether with npm link or npm install methods.
image

I get the same error following your previous post about your dynamic websocket node here: Custom node is not adding to Node-red

How did you manage to get it to work?