destroy.js 174 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 var destroyer = require('../'); var net = require('net'); var server = net.createServer(); var destroy = destroyer(server); server.listen(5000); setTimeout(destroy, 4000);