Skip to content

Instantly share code, notes, and snippets.

@WimJongeneel
Created January 12, 2020 12:32
Show Gist options
  • Save WimJongeneel/70879e85603b8a71427cffe7b8f5a0e0 to your computer and use it in GitHub Desktop.
Save WimJongeneel/70879e85603b8a71427cffe7b8f5a0e0 to your computer and use it in GitHub Desktop.
import * as net from 'net'
const PORT = 3000
const IP = '127.0.0.1'
const BACKLOG = 100
net.createServer()
.listen(PORT, IP, BACKLOG)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment