Say I want to stream the results of calculations from a C program to node-red for real-time visualization.
The C program and node-red run on the same PC so it seems I can establish a connection with virtual TCP/IP ports.
In node-red, I can use the TCP In node and configure it to receive this data. I've done this with the node as a server (listening on) and am comfortable with it.
But what about the C program? I want to say I'll need to create a TCP client object in my C executable, then connect to my node-red server node in order to stream my calculation results.
Is this right? Are there examples anywhere of this?
I'd like to avoid other connection types, and I'd like to keep my program outside of node-red. I'd also like to stick with TCP connections, if possible.