# Node red custom websocket how to handle connections

**URL:** <https://discourse.nodered.org/t/node-red-custom-websocket-how-to-handle-connections/24145>\
**Category:** General\
**Created:** [3 April 2020 11:10 UTC](https://discourse.nodered.org/t/node-red-custom-websocket-how-to-handle-connections/24145 "2020-04-03T11:10:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Serge](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Serge](https://discourse.nodered.org/u/Serge)\
**Post date:** [25 May 2020 08:15 UTC](https://discourse.nodered.org/t/node-red-custom-websocket-how-to-handle-connections/24145/4 "2020-05-25T08:15:40Z")

</div>

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](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/3/3302ddbc0725528a5064605e862d89c98ddff5eb.png)

I get the same error following your previous post about your dynamic websocket node here: [Custom node is not adding to Node-red](https://discourse.nodered.org/t/custom-node-is-not-adding-to-node-red/21475)

How did you manage to get it to work?

---

_[View the full topic](https://discourse.nodered.org/t/node-red-custom-websocket-how-to-handle-connections/24145)._
