Alex Potsides be8fc9daf1
fix: stop stream after first pong received (#545)
When connecting to go-IPFS from a webworker, the stream opened by
the ping protocol is never closed.

The change here uses `take` to only receive one buffer from the
remote node before closing the stream.
2020-02-03 15:50:40 +01:00
..
2020-01-24 14:40:40 +01:00
2020-01-24 14:40:40 +01:00
2020-01-24 14:40:40 +01:00
2020-01-24 14:40:40 +01:00
2020-01-24 14:40:40 +01:00