35 Commits

Author SHA1 Message Date
Alex Potsides
a277bf6bfb
fix: replace node buffers with uint8arrays (#115)
* fix: replace node buffers with uint8arrays

BREAKING CHANGES:

- All deps used by this module now use Uint8Arrays in place of Buffers

* chore: remove gh dep
2020-08-11 15:54:49 +02:00
Hugo Dias
8065e07bad
fix: add buffer (#112) 2020-03-23 17:58:28 +01:00
Vasco Santos
8bfb19a78f fix: catch thrown maConn errors in listener 2020-02-26 16:29:20 +01:00
Alex Potsides
89d37232b8
fix: remove use of assert module (#101)
The polyfill is big, we can simulate it by throwing an Error and it doesn't work under React Native.
2020-02-14 14:27:16 +01:00
Vasco Santos
a4fafc3b3f chore: use libp2p-interfaces (#98) 2019-12-20 10:52:48 -08:00
Jacob Heun
3bf66d08e4
fix: support bufferlist usage (#97)
several it-* modules leverage bufferlist, but ws does not. We need to convert buffer lists to buffers before handing the data off to ws for transmission

License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-10-30 14:23:50 +01:00
Jacob Heun
5b59fc3a47
fix: catch inbound upgrade errors (#96)
License: MIT
Signed-off-by: Jacob Heun <jacobheun@gmail.com>
2019-10-30 13:35:26 +01:00
Vasco Santos
ce7bf4f1e0 refactor: async with multiaddr conn (#92)
BREAKING CHANGE: Switch to using async/await and async iterators. The transport and connection interfaces have changed. See the README for new usage.
2019-09-30 12:14:28 +02:00
Michael FIG
ff19e81dbb chore: update aegir (#87) 2019-07-22 11:29:00 +01:00
Vasco Santos
93ef7c3e70 fix: ipv6 naming with multiaddr-to-uri package (#81)
* chore: use multiaddr-to-uri package

* fix: ipv6 naming with multiaddr-to-uri
2019-01-24 15:22:00 +00:00
Hugo Dias
68ae2c344d fix: reduce bundle size 2019-01-10 14:53:46 +01:00
Maciej Krüger
9ffe03adf6 Fix #70 - Better error for .createServer in browser (#73)
* Fix #70 - Better error for .createServer in browser

* Add test for throw

* Make test sync
2018-04-24 12:45:56 +02:00
Diogo Silva
f59cf88cc2 feat: add class-is module (#72) 2018-04-05 17:21:26 +01:00
Maciej Krüger
709989acc9 feat: Pass options to websocket server (#66) 2018-04-05 17:21:02 +01:00
Dmitriy Ryajov
9ddff85601 feat: filter IPFS addrs correctly (#62)
* feat: dns support for WS

* fix: address parsing

* feat: filter IPFS addrs correctly

* fix: remove lodash includes dependency

* feat: mafmt addrs now support /ipfs no need for ad-hoc filtering

* feat: skip p2p-circuit addresses

* chore: updating ci files

* chore: upgrading to new aegir

* test: pass the no-parallel flag to tests

* wip

* test: removing global timeout and setting it on a specific test

* feat: resolve 0 addresses (#64)

* feat: resolve 0 addresses

* chore: upgrading pull-ws

* chore: update circle CI

* chore: update gitignore

* chore: update deps

* chore: update CI again

* test: fix node.js tests

* test: fix browser tests

* chore
2017-10-20 12:12:35 +01:00
David Dias
3d3cdf1c1e feat: new aegir 2017-10-20 11:25:14 +01:00
Jack Kleeman
8df8084ec7 fix(dial): pass through errors from pull-ws onConnect
Not passing errors meant that failed websocket connections were being treated as successful dials.
2017-03-27 17:10:20 +02:00
Dmitriy Ryajov
9fbbe3f2a0 fix: address parsing (#57)
* feat: dns support for WS

* fix: address parsing

* test: adding ma-to-url tests
2017-03-23 23:19:36 +00:00
David Dias
bdfd042ace DNS support (#56)
* feat: dns support
2017-03-23 15:09:06 +00:00
Chris Campbell
1f01fe7745 Use lodash.includes instead of the deprecated lodash.contains (#39)
* .gitignore Vim swp files

* Use lodash.includes instead of the deprecated lodash.contains
2016-12-15 21:06:54 -08:00
David Dias
0429bebde6 fix: the fix 2016-11-08 17:21:19 +00:00
David Dias
a821c33364 fix: onConnect does not follow callback pattern (#36) 2016-11-08 17:20:14 +00:00
Friedel Ziegelmayer
e73c99ee21 feat: upgrade to aegir@9 (#33) 2016-11-03 08:53:50 +00:00
dignifiedquire
3f58dca09a feat(pull): migrate to pull streams 2016-09-05 19:00:23 -04:00
David Dias
bbc92b998f follow new transport and connection spec 2016-06-22 11:34:37 +01:00
David Dias
5eda5c447b support for addrs with ipfs in the end as well 2016-05-29 09:00:26 +01:00
Friedel Ziegelmayer
cd8935441c fix: improve close handling 2016-05-08 23:01:47 +02:00
David Dias
bef46b23ec chore: release version v0.4.1 2016-05-08 21:57:30 +01:00
David Dias
c03fad252d move error to callback 2016-04-25 02:12:55 +01:00
dignifiedquire
0ba1ca3aa8 Use dignified.js 2016-03-23 16:23:10 +01:00
Francisco Baio Dias
c389020884 Rename callback to ready again 2016-03-20 17:25:17 +00:00
Francisco Baio Dias
3b81221566 Add echo tests 2016-03-15 15:27:22 +00:00
David Dias
1473964c15 add filter 2016-03-14 21:19:42 +00:00
David Dias
03de3c49ef dial and listen done 2016-03-14 20:25:00 +00:00
David Dias
56197e09e5 land it 2016-02-26 13:18:05 +00:00