Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
update dependencies to the latest so that it conforms with new transp…
Browse files Browse the repository at this point in the history
…ort and conn spec
  • Loading branch information
daviddias committed Jun 22, 2016
1 parent eff280a commit 8cd7d28
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 20 deletions.
11 changes: 11 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict'

module.exports = {
webpack: {
resolve: {
},
externals: {
'simple-websocket-server': '{}'
}
}
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ js-libp2p-spdy

[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Coverage Status](https://coveralls.io/repos/github/diasdavid/js-libp2p-spdy/badge.svg?branch=master)](https://coveralls.io/github/diasdavid/js-libp2p-spdy?branch=master)
[![Dependency Status](https://david-dm.org/diasdavid/js-libp2p-spdy.svg?style=flat-square)](https://david-dm.org/diasdavid/js-libp2p-spdy)
[![Travis CI](https://travis-ci.org/diasdavid/js-libp2p-spdy.svg?branch=master)](https://travis-ci.org/diasdavid/js-libp2p-spdy)
[![Circle CI](https://circleci.com/gh/diasdavid/js-libp2p-spdy.svg?style=svg)](https://circleci.com/gh/diasdavid/js-libp2p-spdy)
[![Coverage Status](https://coveralls.io/repos/github/libp2p/js-libp2p-spdy/badge.svg?branch=master)](https://coveralls.io/github/libp2p/js-libp2p-spdy?branch=master)
[![Dependency Status](https://david-dm.org/libp2p/js-libp2p-spdy.svg?style=flat-square)](https://david-dm.org/libp2p/js-libp2p-spdy)
[![Travis CI](https://travis-ci.org/libp2p/js-libp2p-spdy.svg?branch=master)](https://travis-ci.org/libp2p/js-libp2p-spdy)
[![Circle CI](https://circleci.com/gh/libp2p/js-libp2p-spdy.svg?style=svg)](https://circleci.com/gh/libp2p/js-libp2p-spdy)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)

> SPDY 3.1 implementation wrapper that is compatible with libp2p Stream Muxer expected interface
[![](https://github.com/diasdavid/interface-stream-muxer/raw/master/img/badge.png)](https://github.com/diasdavid/interface-stream-muxer)
[![](https://github.com/libp2p/interface-stream-muxer/raw/master/img/badge.png)](https://github.com/libp2p/interface-stream-muxer)

# Installation

Expand Down
5 changes: 3 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ let ws
gulp.task('test:browser:before', (done) => {
ws = new WSlibp2p()
const mh = multiaddr('/ip4/127.0.0.1/tcp/9095/ws')
ws.createListener(mh, (transportSocket) => {
const listener = ws.createListener((transportSocket) => {
const muxedConn = spdy(transportSocket, true)

muxedConn.on('stream', (connRx) => {
const connTx = muxedConn.newStream()
connRx.pipe(connTx)
connTx.pipe(connRx)
})
}, done)
})
listener.listen(mh, done)
})

gulp.task('test:browser:after', (done) => {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
],
"repository": {
"type": "git",
"url": "https://github.com/diasdavid/js-libp2p-spdy.git"
"url": "https://github.com/libp2p/js-libp2p-spdy.git"
},
"keywords": [
"IPFS"
],
"author": "David Dias <daviddias@ipfs.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/diasdavid/js-libp2p-spdy/issues"
"url": "https://github.com/libp2p/js-libp2p-spdy/issues"
},
"homepage": "https://github.com/diasdavid/js-libp2p-spdy",
"homepage": "https://github.com/libp2p/js-libp2p-spdy",
"devDependencies": {
"aegir": "^3.0.4",
"aegir": "^3.2.0",
"bl": "^1.1.2",
"chai": "^3.5.0",
"interface-stream-muxer": "^0.3.1",
"libp2p-websockets": "^0.6.0",
"libp2p-websockets": "^0.7.0",
"multiaddr": "^2.0.0",
"pre-commit": "^1.1.2",
"stream-pair": "^1.0.3",
Expand All @@ -55,4 +55,4 @@
"JGAntunes <j.goncalo.antunes@gmail.com>",
"dignifiedquire <dignifiedquire@gmail.com>"
]
}
}
4 changes: 2 additions & 2 deletions test/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const multiaddr = require('multiaddr')

describe('browser-server', () => {
let ws
before((done) => {

before(() => {
ws = new WSlibp2p()
done()
})

it('ricochet test', (done) => {
Expand Down
10 changes: 5 additions & 5 deletions test/spdy-over-ws.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ describe('spdy-over-ws', () => {
let ws
let mh = multiaddr('/ip4/127.0.0.1/tcp/9090/ws')

before((done) => {
before(() => {
ws = new WSlibp2p()

done()
})

it('attach to a websocket, as listener', (done) => {
ws.createListener(mh, (socket) => {
const wsListener = ws.createListener((socket) => {
expect(socket).to.exist
listener = spdy(socket, true)
expect(listener).to.exist
}, done)
})

wsListener.listen(mh, done)
})

it('attach to a websocket, as dialer', (done) => {
Expand Down

0 comments on commit 8cd7d28

Please sign in to comment.