# Best way to persist msg.res and msg.req in a flow which uses a Websockets to connect to another node instance

**URL:** https://discourse.nodered.org/t/best-way-to-persist-msg-res-and-msg-req-in-a-flow-which-uses-a-websockets-to-connect-to-another-node-instance/56408
**Category:** General
**Created:** [10 January 2022 15:52 UTC](https://discourse.nodered.org/t/best-way-to-persist-msg-res-and-msg-req-in-a-flow-which-uses-a-websockets-to-connect-to-another-node-instance/56408 "2022-01-10T15:52:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mirrorspock](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mirrorspock/32/53932_2.png) [@mirrorspock](https://discourse.nodered.org/u/mirrorspock)
#### Post date: [10 January 2022 15:52 UTC](https://discourse.nodered.org/t/best-way-to-persist-msg-res-and-msg-req-in-a-flow-which-uses-a-websockets-to-connect-to-another-node-instance/56408/1 "2022-01-10T15:52:42Z")

</div>

I'm trying to connect two node-red instances, (DMZ/LAN) using Websockets, I'm having some issues when using the connection with http requests.

the DMZ node-red instance has a http in /echo  
the message is then sent via a Websockets to the LAN node-red instance, who replies.  
I see the correct info in the debug window returning, however, the 'new' message doesn't have the original's msg.res and msg.req and so can't reply.

What is the best way to persist original msg.req and msg.res all the way to the http response?, or to "merge it back to it's original \_msgid?

---

<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: [11 March 2022 15:53 UTC](https://discourse.nodered.org/t/best-way-to-persist-msg-res-and-msg-req-in-a-flow-which-uses-a-websockets-to-connect-to-another-node-instance/56408/2 "2022-03-11T15:53:15Z")

</div>

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