Created
February 16, 2016 18:42
-
-
Save evanlucas/d5f281b46806c42e0a12 to your computer and use it in GitHub Desktop.
net.js
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
'use strict' | |
const net = require('net') | |
const server = net.createServer((sock) => { | |
throw new Error('boom') | |
}).listen(8123, () => { | |
net.connect(8123) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment