# Can we configure websocket node programmatically?

**URL:** <https://discourse.nodered.org/t/can-we-configure-websocket-node-programmatically/57775>\
**Category:** General\
**Created:** [4 February 2022 16:53 UTC](https://discourse.nodered.org/t/can-we-configure-websocket-node-programmatically/57775 "2022-02-04T16:53:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zapicoj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zapicoj/32/82110_2.png) [@zapicoj](https://discourse.nodered.org/u/zapicoj)\
**Post date:** [4 February 2022 16:53 UTC](https://discourse.nodered.org/t/can-we-configure-websocket-node-programmatically/57775/1 "2022-02-04T16:53:24Z")

</div>

Hi,  
In my project, the websocket server url is changing over the time so I need to reconfigure the websocket node every time from the node-red editor. I'm wondering if there is a way to set the websocket node URL from a message, something like msg.url or may be to assign the WS node internal url to a flow or global variable?  
Any tip will be appreciated  
kr

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 April 2022 16:53 UTC](https://discourse.nodered.org/t/can-we-configure-websocket-node-programmatically/57775/2 "2022-04-05T16:53:39Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
