Hi there,
Thanks for the websocket package. It seems to do exactly what I need to interact with a specific service using websockets, but I am faced with one issue and I am not really sure how to deal with it:
- Thru the websocket I trigger an event that takes about 20 seconds to complete. But it can also become longer in certain cases.
- there is an onMessage event that I want to use to monitor that signals when the task is completed.
If I use a while loop in R with a sys.sleep() value, it does not seem to work: it seems to hijack the R process and the events from the websocket do not register at all, until I forcibly stop the loop. I also tried with future to create such a loop, but again it does not seem to work either.
Any idea on how to do this in R?
Hi there,
Thanks for the websocket package. It seems to do exactly what I need to interact with a specific service using websockets, but I am faced with one issue and I am not really sure how to deal with it:
If I use a while loop in R with a sys.sleep() value, it does not seem to work: it seems to hijack the R process and the events from the websocket do not register at all, until I forcibly stop the loop. I also tried with future to create such a loop, but again it does not seem to work either.
Any idea on how to do this in R?