I believe long polling should work fine - I don't think there is a timeout for receiving data, that'd be up to the user.
Another option is to use a websocket connection?
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I believe long polling should work fine - I don't think there is a timeout for receiving data, that'd be up to the user.
Another option is to use a websocket connection?