# Tcp in node only triggers on disconnect

**URL:** <https://discourse.nodered.org/t/tcp-in-node-only-triggers-on-disconnect/44243>\
**Category:** General\
**Created:** [15 April 2021 17:35 UTC](https://discourse.nodered.org/t/tcp-in-node-only-triggers-on-disconnect/44243 "2021-04-15T17:35:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [15 April 2021 17:35 UTC](https://discourse.nodered.org/t/tcp-in-node-only-triggers-on-disconnect/44243/1 "2021-04-15T17:35:48Z")

</div>

I have the following TCPI IN node:

`[{"id":"2bf9b89c.dd2018","type":"tcp in","z":"9f6c165f.c01738","name":"Input from Tulip","server":"server","host":"","port":"1915","datamode":"single","datatype":"utf8","newline":"","topic":"","base64":false,"x":100,"y":120,"wires":[["36927c10.f8ebd4","3b119414.d1c18c"]]}]`

The problem is that even when I add '\n' or \r\n' to the strings being sent the node will not trigger, but if I disconnect it does, but that obviously prevents the host from getting the reply from my TCP OUT node.

How do I need to format the string being sent so the node triggers? The documentation for this node is very light.

---

<div class="post-metadata">

**Author:** ![hobbes1069](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hobbes1069/32/39892_2.png) [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Post date:** [15 April 2021 17:37 UTC](https://discourse.nodered.org/t/tcp-in-node-only-triggers-on-disconnect/44243/2 "2021-04-15T17:37:40Z")

</div>

Never mind, it finally registered what "datamode" : "single" means...

---

<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:** [15 April 2021 17:40 UTC](https://discourse.nodered.org/t/tcp-in-node-only-triggers-on-disconnect/44243/3 "2021-04-15T17:40:08Z")

</div>

You probably wanted a stream of strings separated by \n mode... but glad you figured it out while I was thinking 🙂

---

<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:** [14 June 2021 17:40 UTC](https://discourse.nodered.org/t/tcp-in-node-only-triggers-on-disconnect/44243/4 "2021-06-14T17:40:31Z")

</div>

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