Skip to content

Instantly share code, notes, and snippets.

@hns
Created February 9, 2012 17:37
Show Gist options
  • Save hns/1781470 to your computer and use it in GitHub Desktop.
Save hns/1781470 to your computer and use it in GitHub Desktop.
var {WorkerPromise} = require("ringo/worker");
exports.app = function(request) {
return new WorkerPromise(module.id, "Hello World");
}
function onmessage(e) {
e.source.postMessage({status: 200, headers: {}, body: [e.data]});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment