Respected,
I use Node.js to create TCP client using 'net' module to connect with Hardware device(Which only supports TCP Protocol) which Streams data when available,so that I could listen on('data',callback) event,
This is fine for Single client,But when I have more than 10 Hardware devices with unique IP address i need to Manage Multiple clients and events.
And The Question is
While the number of clients increases The data from the different Device will be still Asynchronous or it is going to Blocked ?
Can I receive Data from Multiple Device at the Time(mean without any Delay in seconds Because the Application is RealTime and we Don't need Delay in getting the data from Hardware)
How to Manage Multiple Clients or Parent/Child Process with each child process connecting to the Hardware(countable) by Socket Communication is efficient way?
And When the TCP connection breaks(Network Problem,Ethernet Cable Problems),but I'm pretty sure that there exists no "reliable way to detect interruptions in the connection".How can I tackle and reconnect to the Broken Connections?
If Any guidance/experience,please Share to solve this Engineering problem.
Thanks in Advance