Created
October 26, 2015 15:21
-
-
Save chadaustin/705b8a5bcc9bb7b462be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thus negating any security it provides. Therefore, we focus on making our machines and network as secure as possible.