Update README.md

This commit is contained in:
AJ ONeal 2017-04-28 21:25:09 +00:00
parent fea769a271
commit aa92e55145

View File

@ -12,7 +12,7 @@ Similar to `stream-pair`, but with sockets with real fds. A workaround for <http
var socketPair = require('socket-pair');
var socket = socketPair.create(function (err, other) {
// socket as in `client = net.connect()`
// socket as in `client = new net.Socket(); client.connect(...);`
// other as in `server.on('connection', function (conn) { ... })`
socket.write('123');