Combining web service with HttpClient on Core

Guys

I have successfully hosted web methods on my core, using jquery client.

Now I would like to combine the following on my core:

  • listen for web request
  • loop and check for a button press
  • periodically post data to a web service/page

I dont need any critical timing items and if a button does not register immidiately, it is not the end of the world. All I want to know is

  • Does a listener like Spark.function(“fnrouter”, fnRouter); prevent you from using a loop to check on other items?
  • Can I do web listeners together with a connection to post items to a URL using an HttpClient?

Many thanks for any advice and samples.
Ockert