Websocket listen custom node

Hello. I would like to know how could i create a custom node which listenes to websocket server and outputs data that it listened to.For example I send some data to websocket like : "SUBSCRIBE ......path-to-socket....". The result will then be => NOTIFY ....path-to-socket.... and here after the path is the value. To extract the value i already know the function but i want to know how to implement thtat in node-red js file.

What is wrong with the existing websocket node?

The problem i have is that to reach the value of the data given back from websocket i must use a function node to reach it. I want to create a custom websocket node that will do the trimming and reach the value without having to use another node.

Closing this one. That discussion is active over here: Custom socket node