That works both ways, you could always do something like is on: http://www.espruino.com/WiFi+Remote+Console
It's a lot less flexible, but in a way is easier because you're sending one thing to evaluate in one request
@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.
That works both ways, you could always do something like is on: http://www.espruino.com/WiFi+Remote+Console
It's a lot less flexible, but in a way is easier because you're sending one thing to evaluate in one request