RangerMauve / hyperswarm-web

Implementation of the hyperswarm API for use in web browsers
MIT License
102 stars 15 forks source link

Implement swarm.peers and emit disconnection event #24

Closed ralphtheninja closed 2 years ago

ralphtheninja commented 2 years ago

Yet another Map() of peers. I could dig more into the lower layers, but I thought it was easier to implement a Map in the swarm, since we catch the connection and disconnection events. I'd be happy with the 'disconnection' event only since I could move the Map to my layer, but the hyperswarm api has swarm.peers so I thought I'd put it there so we implement more similar functionality.

ralphtheninja commented 2 years ago

I usually create many and small commits. Feel free to squash this!

ralphtheninja commented 2 years ago

@RangerMauve Any chance in getting this merged? I can always try tweaking it if you're not happy with it.

RangerMauve commented 2 years ago

Released in v2.2.0 🎉

ralphtheninja commented 2 years ago

Released in v2.2.0 tada

Sweet! :heart: