Update README.md
This commit is contained in:
parent
fea769a271
commit
aa92e55145
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user