Created
August 20, 2017 23:03
-
-
Save rich-97/bdfb1da5fc7dbf524ccbf986d509cc53 to your computer and use it in GitHub Desktop.
Echo server in nodejs.
This file contains 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
const http = require('http') | |
const server = http.createServer() | |
server.on('request', function (req, res) { | |
req.pipe(res) | |
}) | |
server.listen(8000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment