I have the following function:
function readMessage() { try { var message = socket.receive({timeout: 500}); console.log("SSP800 received: " + message); return message; } catch(err) { console.log("SSP800 receive error: " + err); return ""; }
console.log(“SSP800 receive: nothing”);
return “”;
}
I’m able to send() to this socket, but when I call this function, none of the console.log entries are written to log, so I’m not sure I’ve done the try correctly. Removing the timeout does not change the behavior other than blocking the second time its called.