Use libp2p-spdy instead
Abstraction on top of spdy-transport, implementing the abstract-stream-muxer interface
Abstraction on top of spdy-transport, implementing the abstract-stream-muxer interface
npm i spdy-stream-muxer
spdy-stream-muxer follows the abstract-stream-muxer API
// Client.js
var spdyStreamMuxer = require('spdy-stream-muxer')
var dialer = new spdyStreamMuxer()
var connDialer = dialer.attach(socket, false)
connDialer.dialStream(function (err, stream) {
t.ifError(err, 'Should not throw')
t.pass('dialed stream')
})
// Server.js
var spdyStreamMuxer = require('spdy-stream-muxer')
var listener = new spdyStreamMuxer()
var connListener = listener.attach(socket, true)
connListener.on('stream', function (stream) {
t.pass('got stream')
})
This is deprecated. Please know that any open issues or PRs will likely not be prioritized.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to libp2p are subject to the IPFS Code of Conduct.
MIT © 2015 David Dias