TCP Nodes #57
phoddie
started this conversation in
Show and tell
Replies: 1 comment
-
One detail that the TCP In and TCP Out nodes have to get right for compatibility with projects and integration with the Node-RED Editor is to use the same message format. Here's one request header line output by the flow above running in full Node-RED: Here's the same line running on an MCU (connected to the Editor through the MCU plug-in): The only difference is that the MCU uses an IPv4 address instead of IPv6. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got implementations of the TCP In and TCP Out nodes in place now. They support nearly all of the features except for Status and TLS. Status should be straightforward and will be really nice to use with @ralphwetzel 's MCU plugin for the Node-RED Editor. The TLS client should be straightforward to finish-up once I make a bit more progress on the ECMA-419 TLS TCP socket implementation.
Here's a simple flow I used for testing. It is a terrible HTTP server. It listens on port 8080 for incoming HTTP requests. When the request headers are received, it sends a response of "hello". You can test with
curl localhost:8080
.TCP In/TCP Out flow JSON
The TCP In and TCP Out nodes have the same behavior on the MCU as in Node-RED in my tests. But.... I'm not really sure how developers are using TCP In and TCP Out in their projects. I could use some guidance or help to understand that. Examples would be really great.
I do intend to implement TCP Request as well. It is another chunk of work. And I really have no idea how people are using TCP Request, so I'd be developing against contrived tests. I'd like to get some feedback from developers using the TCP Nodes before taking that on.
FWIW – the Switch Node here uses the "empty" condition which was previously unimplemented but was added as part of the TCP work.
Beta Was this translation helpful? Give feedback.
All reactions