Update README.md
This commit is contained in:
父節點
fea769a271
當前提交
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');
|
||||
|
載入中…
x
新增問題並參考
Block a user