# Access connection status for TCP request with function

**URL:** <https://discourse.nodered.org/t/access-connection-status-for-tcp-request-with-function/3111>\
**Category:** General\
**Created:** [13 September 2018 11:44 UTC](https://discourse.nodered.org/t/access-connection-status-for-tcp-request-with-function/3111 "2018-09-13T11:44:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evenho](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@evenho](https://discourse.nodered.org/u/evenho)\
**Post date:** [13 September 2018 11:44 UTC](https://discourse.nodered.org/t/access-connection-status-for-tcp-request-with-function/3111/1 "2018-09-13T11:44:34Z")

</div>

Is there a way to access the connection status of a TCP request node form within a function node?  
I'm aware of the Status node, but in my setup it would be better if this could be checked in the function.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [13 September 2018 11:52 UTC](https://discourse.nodered.org/t/access-connection-status-for-tcp-request-with-function/3111/2 "2018-09-13T11:52:04Z")

</div>

You cannot access the status property of another node directly.

If you use Status node to feed the status to a Change node that sets a flow context property with the status value, you can then access that flow context property from your Function node.
