You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
after connect if not receive byte hanging on receive #29
const client = new SocketClientTCP(7000, '192.168.1.17');
client.send(hex_string1);
(bytes send perfectly)
server not response and client hanging on command
data=client.receive();
Not go to next command.
How can set timeout on receive function ?
A construction using settimeout loses connection , example:
setTimeout(function(){data=client.receive();},1000);
Error: Cannot use NetLinkSocket that has already been destroyed.
changed the title [-]after econnect if not receive byte hanging on receive[/-][+]after connect if not receive byte hanging on receive[/+]on Jun 23, 2021
And if we make construction using settimeout for disconnect after 1 sec, also not interrupted (stopped) receive , example:
setTimeout(function(){data=client.disconnect();},1000);
data=client.receive();
Activity
[-]after econnect if not receive byte hanging on receive[/-][+]after connect if not receive byte hanging on receive[/+]Vladvladd commentedon Jun 24, 2021
And if we make construction using settimeout for disconnect after 1 sec, also not interrupted (stopped) receive , example:
setTimeout(function(){data=client.disconnect();},1000);
data=client.receive();