holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.03k stars 84 forks source link

Add swarm.session([opts]) from @Nazeh's work #130

Open LuKks opened 1 year ago

LuKks commented 1 year ago

This code is based from the PR of @Nazeh here: https://github.com/holepunchto/hyperswarm/pull/107

LuKks commented 1 year ago

@mafintosh Ready!

LuKks commented 1 year ago

@mafintosh Ready!

LuKks commented 1 year ago

@mafintosh Ready!

mafintosh commented 1 year ago

Nice, @andrewosh wanna do a quick review?

LuKks commented 1 year ago

Removed docs so it's easier to merge it with less review, but also good to merge as it fixes the DHT 'network-change' event leak by doing dht.off('network-change', ..)

Will make a new PR to add the docs once it's prepared to be part of the API

LuKks commented 1 year ago

Added docs again