# TCP port time between signals trouble

**URL:** <https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738>\
**Category:** General\
**Tags:** tcp-nodes\
**Created:** [19 August 2025 21:02 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738 "2025-08-19T21:02:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Triman5](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@Triman5](https://discourse.nodered.org/u/Triman5)\
**Post date:** [19 August 2025 21:02 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738/1 "2025-08-19T21:02:24Z")

</div>

Hello, I hope someone can help me with a signal over TCP port with the time between signal increasing. Which causes a lag in reading the data.

I’m running Node-Red version 7.0.4 on Windows 10, dashboard v2. There is a sensor sending a signal 8x a second (~125ms) to port 2113. When I measure the interval time between signal it start at 125ms between signal which I believe is the correct amount of time. From the sensor without using NR I can measure a consistent signal at 125ms interval. The TCP server node, node-red-contrib-tcp-client2, connects to the signal well. However, after a few minutes the interval goes from 125ms to 260ms and higher.  
It would be nice to know how to know how to optimize a TCP port connection and keep it running smoothly. If anyone has any suggestions on how to optimize a TCP port or could suggest what to look for I would greatly appreciate it. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 August 2025 21:13 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738/2 "2025-08-19T21:13:18Z")

</div>

Hi

just wondering why you are using a contrib node rather than the built in tcp node ?

Also what are you then doing with the data ? Are you doing something potentially slow with it ? Like calling out to some other process ? ( that could cause it to start backing up)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 August 2025 21:17 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738/3 "2025-08-19T21:17:18Z")

</div>

> [@Triman5](#):
>
> Node-Red version 7.0.4

This is not a valid version of node-red. Latest node-red version of 4.1.0.

> [@Triman5](#):
>
> node-red-contrib-tcp-client2

This is not a core node. Any reason you are not not using built in TCP nodes?

Regarding the slow down, perhaps something you are doing after recieving the messages?

---

<div class="post-metadata">

**Author:** ![Triman5](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@Triman5](https://discourse.nodered.org/u/Triman5)\
**Post date:** [22 August 2025 18:02 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738/4 "2025-08-22T18:02:33Z")

</div>

Sorry, running NR v4.0.9

---

<div class="post-metadata">

**Author:** ![Triman5](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@Triman5](https://discourse.nodered.org/u/Triman5)\
**Post date:** [22 August 2025 18:05 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738/5 "2025-08-22T18:05:15Z")

</div>

Thank you for the comment. What is the difference between the contrib nodes and the built in TCP node? I’ll test the built in TCP node.

The data is sent to a chart in dashboard v2. The chart is one minute of data at a sample rate of x8 per second, ~125ms. The chart data is cleared every minute.

---

<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:** [20 November 2025 18:05 UTC](https://discourse.nodered.org/t/tcp-port-time-between-signals-trouble/98738/6 "2025-11-20T18:05:17Z")

</div>

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