webConnect in the Foreground?

A CIQ developer messaged me and in conversation mentioned he runs webConnect in the foreground from compute(), and using a timer, runs it every 10 seconds.

I run it in the BG from a temporalEvent, as needed based on certain situations. But I'd prefer to grab the JSON packet from the server from the FG. To avoid a 5 min delay between calls and the limited memory and the need to exchange state (from FG to BG) using storage. Is this possible and are there any tricks or limitations to doing this in the FG? That would be awesome if allowed.