How to write custom connector in node js

And also please help me out in custom message I want to send a custom elements to web UI backend You posted a question that custom message is not getting but after you replied that you solved by other method can you tell me that method @jiteshgaikwad