Skip to content

Instantly share code, notes, and snippets.

View yukilikespie's full-sized avatar
😼
Meow-ing around

yukilikespie

😼
Meow-ing around
View GitHub Profile
@yukilikespie
yukilikespie / nodejs-tcp-example.js
Last active September 23, 2019 07:41 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
/*
Edits from https://gist.github.com/tedmiston/5935757#gistcomment-1947818