1) This world shows a simple example of how to make a request:
2) Lets say you created a simple subserver "MyServer" with $world.openSubserverViewer():
module.exports = function(route, app) {
app.get(route, function(req, res) {
res.end("MyServer is running!");
});
}
To make a request to the handler run:
URL.nodejsBase.withFilename("MyServer/").asWebResource().get().content
(in an older version of Lively:
new URL(Config.nodeJSURL + '/MyServer/').asWebResource().get().content)
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel