[{"id":"ec997b8d.75f058","type":"tcp in","z":"8ba9287d.4e8a78","name":"Server holding connections at :1025","server":"server","host":"","port":"1025","datamode":"stream","datatype":"utf8","newline":"\\n","topic":"text","base64":false,"x":145,"y":152.00002002716,"wires":[["2e11fc20.17af34","72078b25.835524"]]},{"id":"c815b449.219838","type":"tcp out","z":"8ba9287d.4e8a78","host":"","port":"","beserver":"reply","base64":false,"end":false,"name":"reply: all open connections will be messaged","x":1155,"y":152.00002002716,"wires":[]},{"id":"869e89c2.d9ecd8","type":"debug","z":"8ba9287d.4e8a78","name":"show incomming text at the debug tab","active":true,"console":"false","complete":"payload","x":657.00002288818,"y":288.00003623962,"wires":[]},{"id":"af0f0db5.732f4","type":"inject","z":"8ba9287d.4e8a78","name":"button: create a msg","topic":"","payload":"Hello from Node-RED server.","payloadType":"str","repeat":"","crontab":"","once":false,"x":476.00006103516,"y":67.000021934509,"wires":[["7ab29d9e.a4cb64"]]},{"id":"eb67f442.7122c8","type":"debug","z":"8ba9287d.4e8a78","name":"show incomming text at the debug tab","active":true,"console":"false","complete":"payload","x":335,"y":692.00002002716,"wires":[]},{"id":"18fa3240.609cde","type":"inject","z":"8ba9287d.4e8a78","name":"button: create a msg","topic":"","payload":"Hello from Node-RED client.","payloadType":"str","repeat":"","crontab":"","once":false,"x":825,"y":512.00002002716,"wires":[["f128411b.4f12a"]]},{"id":"3f17fb5a.0b38e4","type":"tcp out","z":"8ba9287d.4e8a78","host":"","port":"","beserver":"reply","base64":false,"end":false,"name":"reply: the server will get messaged","x":1125,"y":592.00002002716,"wires":[]},{"id":"9952b3f.f05195","type":"tcp in","z":"8ba9287d.4e8a78","name":"Node-RED Client","server":"client","host":"localhost","port":"1025","datamode":"stream","datatype":"utf8","newline":"\\n","topic":"text2","base64":false,"x":85,"y":592.00002002716,"wires":[["4949aaff.757704","a65ad59.322d328"]]},{"id":"4949aaff.757704","type":"template","z":"8ba9287d.4e8a78","name":"\"CLIENT GOT:\" +","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"CLIENT GOT:\n{{payload}}","x":275,"y":652.00002002716,"wires":[["eb67f442.7122c8"]]},{"id":"2e11fc20.17af34","type":"template","z":"8ba9287d.4e8a78","name":"\"SERVER GOT:\" +","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"SERVER GOT:\n{{payload}}","x":395,"y":212.00002002716,"wires":[["869e89c2.d9ecd8"]]},{"id":"72078b25.835524","type":"template","z":"8ba9287d.4e8a78","name":"modify received msg to be send back","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"You were sending: {{payload}}\n","x":655,"y":152.00002002716,"wires":[["c815b449.219838"]]},{"id":"ca953b14.cc82c8","type":"comment","z":"8ba9287d.4e8a78","name":"Telnet client: open your command prompt, and type: `telnet localhost 1025` and start typing","info":"Telnet client: open your command prompt, and type: `telnet localhost 1025` and start typing","x":325,"y":772.00002002716,"wires":[]},{"id":"3cc5efef.61041","type":"tcp in","z":"8ba9287d.4e8a78","name":"Proxy: fixing client with no NL :1026","server":"server","host":"","port":"1026","datamode":"stream","datatype":"utf8","newline":"","topic":"text","base64":false,"x":145,"y":412.00002002716,"wires":[["4215cb57.834e14"]]},{"id":"4215cb57.834e14","type":"template","z":"8ba9287d.4e8a78","name":"fix incomming message with a newline","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}\n","x":455,"y":412.00002002716,"wires":[["988831e6.7194c"]]},{"id":"f128411b.4f12a","type":"template","z":"8ba9287d.4e8a78","name":"+ newline","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}\n","x":985,"y":512.00002002716,"wires":[["3f17fb5a.0b38e4"]]},{"id":"7ab29d9e.a4cb64","type":"template","z":"8ba9287d.4e8a78","name":"+ newline","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}\n","x":803.99997711182,"y":56.000021934509,"wires":[["c815b449.219838"]]},{"id":"988831e6.7194c","type":"tcp request","z":"8ba9287d.4e8a78","server":"localhost","port":"1025","out":"time","splitc":"0","name":"connect the Node-RED server","x":795,"y":412.00002002716,"wires":[["8c3280db.ee3cb"]]},{"id":"8c3280db.ee3cb","type":"tcp out","z":"8ba9287d.4e8a78","host":"","port":"","beserver":"reply","base64":false,"end":false,"name":"reply: any answer back to the client","x":1125,"y":412.00002002716,"wires":[]},{"id":"4efd6b3b.d1d814","type":"inject","z":"8ba9287d.4e8a78","name":"button: open telnet to 1025 (windows)","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":875,"y":772.00002002716,"wires":[["43c056ff.bfa508","5f2816.0a3177ec"]]},{"id":"43c056ff.bfa508","type":"exec","z":"8ba9287d.4e8a78","command":"start","addpay":false,"append":"telnet localhost 1025","useSpawn":false,"timer":"","name":"start telnet","x":1115,"y":772.00002002716,"wires":[[],[],[]]},{"id":"5f2816.0a3177ec","type":"delay","z":"8ba9287d.4e8a78","name":"","pauseType":"delay","timeout":"1200","timeoutUnits":"milliseconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1125,"y":832.00002002716,"wires":[["5d488cb8.4b8024"]]},{"id":"5d488cb8.4b8024","type":"exec","z":"8ba9287d.4e8a78","command":"msg","addpay":false,"append":"%username% \"start by pressing enter\"","useSpawn":false,"timer":"","name":"msg box","x":1105,"y":872.00002002716,"wires":[[],[],[]]},{"id":"a65ad59.322d328","type":"template","z":"8ba9287d.4e8a78","name":"no msg back, we do behave!","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"","x":605,"y":592.00002002716,"wires":[["3f17fb5a.0b38e4"]]}]