J
J
jtag2018-06-04 09:29:35
Node.js
jtag, 2018-06-04 09:29:35

How to create the required number of net.Socket class objects?

The initial scan determines the number of available devices. How can I automatically create the required number of sockets? one device = one socket. So that you can hang an event handler on them, the same for everyone. Well, to be able to connect, disconnect these sockets. At least an approximate algorithm or syntax?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question