# \#websocket

**URL:** https://discourse.nodered.org/tag/websocket/107.md

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

---

## [Access HTTP headers in websocket-in node to link user to session ID](https://discourse.nodered.org/t/access-http-headers-in-websocket-in-node-to-link-user-to-session-id/100836)

<div class="topic-metadata">

**Author:** [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)\
**Replies:** 3\
**Last updated:** [27 April 2026 10:27 UTC](https://discourse.nodered.org/t/access-http-headers-in-websocket-in-node-to-link-user-to-session-id/100836 "2026-04-27T10:27:38Z")

</div>

Hi, I have a Node-RED setup behind Nginx. When a WebSocket connection is established, Nginx injects a verified X-Myapp-User header into the handshake request. Using webSocketNodeVerifyClient in settings.js I can read t…

---

## [Node-Red from 172.16.10.1: Client unable to keep up with pending messages. Reached 4096 pending messages. The system's load is too high or an integration is misbehaving;](https://discourse.nodered.org/t/node-red-from-172-16-10-1-client-unable-to-keep-up-with-pending-messages-reached-4096-pending-messages-the-systems-load-is-too-high-or-an-integration-is-misbehaving/100116)

<div class="topic-metadata">

**Author:** [@CoderN](https://discourse.nodered.org/u/CoderN)\
**Replies:** 12\
**Last updated:** [13 January 2026 14:37 UTC](https://discourse.nodered.org/t/node-red-from-172-16-10-1-client-unable-to-keep-up-with-pending-messages-reached-4096-pending-messages-the-systems-load-is-too-high-or-an-integration-is-misbehaving/100116 "2026-01-13T14:37:58Z")

</div>

On Home Assistant startup, there is always an error like this pops up: 2026-01-07 22:23:49.254 ERROR (MainThread) \[homeassistant.components.websocket\_api.http.connection\] \[140711007067392\] Node-Red from 172.16.10.1: Cli…

---

## [Home Assistant Entities from Node-RED missing after HA 2025.6.1 Update](https://discourse.nodered.org/t/home-assistant-entities-from-node-red-missing-after-ha-2025-6-1-update/97697)

<div class="topic-metadata">

**Author:** [@NeumaierC](https://discourse.nodered.org/u/NeumaierC)\
**Replies:** 1\
**Last updated:** [19 June 2025 08:44 UTC](https://discourse.nodered.org/t/home-assistant-entities-from-node-red-missing-after-ha-2025-6-1-update/97697 "2025-06-19T08:44:42Z")

</div>

Hello, since updating to Home Assistant version 2025.6.1, all Home Assistant entities (especially sensors) created via Node-RED are no longer available in Home Assistant. The connection between Node-RED and Home Assista…

---

## [Close Websocket Connections to specific Sessions](https://discourse.nodered.org/t/close-websocket-connections-to-specific-sessions/94030)

<div class="topic-metadata">

**Author:** [@HrKnuddel\_2015](https://discourse.nodered.org/u/HrKnuddel_2015)\
**Replies:** 0\
**Last updated:** [19 December 2024 16:48 UTC](https://discourse.nodered.org/t/close-websocket-connections-to-specific-sessions/94030 "2024-12-19T16:48:33Z")

</div>

I have a Websocket server setup in my Node-Red and for that server you need to authenticate (It's a system to relay Messages from another source). From the beginning we wanted to automatically disconnect every Session th…

---

## [Cex.io websocket help needed :)](https://discourse.nodered.org/t/cex-io-websocket-help-needed/93863)

<div class="topic-metadata">

**Author:** [@dcigir](https://discourse.nodered.org/u/dcigir)\
**Replies:** 3\
**Last updated:** [11 December 2024 18:20 UTC](https://discourse.nodered.org/t/cex-io-websocket-help-needed/93863 "2024-12-11T18:20:31Z")

</div>

Can someone help me how to create websocket connection with my broker with node-red (in HASSIO)? I have tried to read guide from -cex.io, but I'm lost cex.io api documentation What I have done so far is connection to …

---

## [Variable used for websocket node url](https://discourse.nodered.org/t/variable-used-for-websocket-node-url/92984)

<div class="topic-metadata">

**Author:** [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Replies:** 2\
**Last updated:** [21 November 2024 20:27 UTC](https://discourse.nodered.org/t/variable-used-for-websocket-node-url/92984 "2024-11-21T20:27:07Z")

</div>

Hi, Is there a way to set the URL used for websocket connection dynamically, like we can do for http request nodes ? Thanks, Jerome

---

## [Debugging Node-RED ui\_base.js and Understanding WebSocket Behavior](https://discourse.nodered.org/t/debugging-node-red-ui-base-js-and-understanding-websocket-behavior/91131)

<div class="topic-metadata">

**Author:** [@Nandhini-Subramaniya](https://discourse.nodered.org/u/Nandhini-Subramaniya)\
**Replies:** 6\
**Last updated:** [24 September 2024 08:44 UTC](https://discourse.nodered.org/t/debugging-node-red-ui-base-js-and-understanding-websocket-behavior/91131 "2024-09-24T08:44:24Z")

</div>

I'm working on debugging the ui\_base.js file from the FlowFuse Node-RED Dashboard located at /home/nandhini/CTCDSERV/nodered/node-red/node\_modules/@flowfuse/node-red-dashboard/nodes/config/ui\_base.js. Challenges: Meth…

---

## [How can I get the current state of my device?](https://discourse.nodered.org/t/how-can-i-get-the-current-state-of-my-device/91015)

<div class="topic-metadata">

**Author:** [@hogka](https://discourse.nodered.org/u/hogka)\
**Replies:** 8\
**Last updated:** [17 September 2024 09:39 UTC](https://discourse.nodered.org/t/how-can-i-get-the-current-state-of-my-device/91015 "2024-09-17T09:39:37Z")

</div>

Hello everyone! I'm kinda new to Node Red and I'm facing some issues, so I hope somebody more experienced than me can help me. The thing is I'm trying to get the current state of my LoRa device using a GET HTTP in node…

---

## [How to make WebSocket authentication?](https://discourse.nodered.org/t/how-to-make-websocket-authentication/90529)

<div class="topic-metadata">

**Author:** [@tahasamy](https://discourse.nodered.org/u/tahasamy)\
**Replies:** 1\
**Last updated:** [29 August 2024 15:57 UTC](https://discourse.nodered.org/t/how-to-make-websocket-authentication/90529 "2024-08-29T15:57:22Z")

</div>

How to make WebSocket authentication? I want to implement authentication in WebSocket, but there is no way to disconnect unauthorized users—anyone can connect to the WebSocket. I need a node that can verify the headers …

---

## [Node Red as Public facing websocket server](https://discourse.nodered.org/t/node-red-as-public-facing-websocket-server/89833)

<div class="topic-metadata">

**Author:** [@SoundRegz](https://discourse.nodered.org/u/SoundRegz)\
**Replies:** 3\
**Last updated:** [1 August 2024 09:21 UTC](https://discourse.nodered.org/t/node-red-as-public-facing-websocket-server/89833 "2024-08-01T09:21:08Z")

</div>

Hello, I would like to use node red as a public facing websocket server. Essentially I have a few client apps out on general internet that need to exchange messages. I have this working on a LAN at home, but would like …

---

## [Setting Websocket Headers dynamically](https://discourse.nodered.org/t/setting-websocket-headers-dynamically/88162)

<div class="topic-metadata">

**Author:** [@moreelremy](https://discourse.nodered.org/u/moreelremy)\
**Replies:** 4\
**Last updated:** [24 May 2024 09:10 UTC](https://discourse.nodered.org/t/setting-websocket-headers-dynamically/88162 "2024-05-24T09:10:57Z")

</div>

Hello, I'm currently running on the latest update of NodeRED (v4.0.0-beta.3-1) because of the Websockets new feature that allows you to set headers before the connection request. The thing is that I need to generate a B…

---

## [Websocket connections inside a function node](https://discourse.nodered.org/t/websocket-connections-inside-a-function-node/87436)

<div class="topic-metadata">

**Author:** [@kitori](https://discourse.nodered.org/u/kitori)\
**Replies:** 5\
**Last updated:** [24 April 2024 10:14 UTC](https://discourse.nodered.org/t/websocket-connections-inside-a-function-node/87436 "2024-04-24T10:14:40Z")

</div>

Is it possible to use a Websocket connection inside a function node? Native Websocket dont work: WebSocket - Web APIs | MDN , This as well: :volcano: :volcano: :volcano: ! function node "ws" will crash node red …

---

## [Websocket Connect Problem](https://discourse.nodered.org/t/websocket-connect-problem/86025)

<div class="topic-metadata">

**Author:** [@sercancetin](https://discourse.nodered.org/u/sercancetin)\
**Replies:** 2\
**Last updated:** [1 March 2024 07:23 UTC](https://discourse.nodered.org/t/websocket-connect-problem/86025 "2024-03-01T07:23:58Z")

</div>

Hello everyone. There is a problem with websocket. I'd like to get your opinion. When I connect to the server with the Node-Redin websocket client node in a project, the server disconnects immediately, but when I connec…

---

## [Connecting to AWS IoT Core over WebSockets](https://discourse.nodered.org/t/connecting-to-aws-iot-core-over-websockets/84741)

<div class="topic-metadata">

**Author:** [@FrankAr](https://discourse.nodered.org/u/FrankAr)\
**Replies:** 6\
**Last updated:** [11 February 2024 23:33 UTC](https://discourse.nodered.org/t/connecting-to-aws-iot-core-over-websockets/84741 "2024-02-11T23:33:00Z")

</div>

Hi there, I am trying to connect to AWS IoT Core using node red. I am behind a corporate proxy with a lot of restrictions concerning port availability etc, and can therefore not use the node-red-contrib-aws-iot-hub as n…

---

## [Using Dynamic URL websocket node](https://discourse.nodered.org/t/using-dynamic-url-websocket-node/85384)

<div class="topic-metadata">

**Author:** [@DrHouseIT](https://discourse.nodered.org/u/DrHouseIT)\
**Replies:** 0\
**Last updated:** [9 February 2024 18:28 UTC](https://discourse.nodered.org/t/using-dynamic-url-websocket-node/85384 "2024-02-09T18:28:00Z")

</div>

I would like to use a websocket interface in node-red. For this I need a dynamic url, because I need a token for access. This changes every 24 hours. Are there approaches to use a dynamic url for the websocket node? …

---

## [Allow adding headers to WebSocket client?](https://discourse.nodered.org/t/allow-adding-headers-to-websocket-client/82842)

<div class="topic-metadata">

**Author:** [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Replies:** 9\
**Last updated:** [14 November 2023 21:22 UTC](https://discourse.nodered.org/t/allow-adding-headers-to-websocket-client/82842 "2023-11-14T21:22:21Z")

</div>

So... I have just needed to manually code up a web socket client function node, in order to pass custom headers (i.e bearer token) to a WebSocket server I was surprised this is not already allowed. As per guidelines, …
