Last active
January 7, 2018 01:22
-
-
Save sturadnidge/460238a4d3a0520241c1e92d9175d586 to your computer and use it in GitHub Desktop.
node.js tcp server
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
var net = require('net'); | |
var server = net.createServer(function(socket) { | |
socket.write('ADMIN HE DOING IT SIDEWAYS\r\n'); | |
socket.pipe(socket); | |
}); | |
server.listen(process.env.PORT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment