Created
January 12, 2020 13:02
-
-
Save WimJongeneel/4915fb7329f585bd2ab9e7c011314b54 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
net.createServer() | |
.listen(PORT, IP, BACKLOG) | |
.on('connection', socket => socket | |
.on('data', buffer => { | |
const request = buffer.toString() | |
socket.write('hello world') | |
socket.end() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment