So I’m trying to get the Electron to send a POST request using the TCPClient whenever an event is detected. My issue is with the communication blocking the main loop, which checks for events, until the HTTP response is received.
I’ve thought of either using a software timer to periodically send batches of requests, which doesn’t really resolve the issue, or to somehow incorporate threading. However, there doesn’t seem to be too much information on multithreading on the Electron. Can somebody lend a hand?