I have a question to ask about how to read the data response from the socket in a for loop that writes a number of data in the network socket and for each of them must necessarily read immediately after the content to check if there are errors in the protocol, not I can hear socket.listen inside the for code. Are there any solutions to this problem? Thank you
for (var item in list){
socket.add(item.description);
//here i want read the response sync
socket.read()?
}