Skip to content

Instantly share code, notes, and snippets.

@chadaustin
Created October 26, 2015 15:21
Show Gist options
  • Select an option

  • Save chadaustin/705b8a5bcc9bb7b462be to your computer and use it in GitHub Desktop.

Select an option

Save chadaustin/705b8a5bcc9bb7b462be to your computer and use it in GitHub Desktop.
let require1 = _unsafe_js("require");
let http = require1("http");
let console = require1("console");
let PORT = 8080;
fun handleRequest(request, response) {
response.end("It Works!!"); // Path Hit: " + request.url);
return ();
}
let server = http.createServer(handleRequest);
let _ = server.listen(PORT, fun() {
console.log("Server listening on: http://localhost:%s", PORT);
});

ghost commented Oct 26, 2015

Copy link
Copy Markdown

thus negating any security it provides. Therefore, we focus on making our machines and network as secure as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment