Skip to content

after connect if not receive byte hanging on receive #29

@Vladvladd

Description

@Vladvladd

Hello!
After connect and send bytes :

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions