Skip to content

Instantly share code, notes, and snippets.

@JoshuaGross
Created April 26, 2015 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaGross/7c2569935cb6e7aecc45 to your computer and use it in GitHub Desktop.
Save JoshuaGross/7c2569935cb6e7aecc45 to your computer and use it in GitHub Desktop.
Test an echo server on the command-line with node
node -e "var client; (client = new require('net').Socket()).connect(7000, \"0.0.0.0\", function () { console.log(\"connected\"); client.on(\"data\", function (data) { console.log(\"Received:\" + data); client.destroy(); }); client.write(\"holla\"); });"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment