mafintosh / webrtc-swarm

Create a swarm of p2p connections using webrtc and a signalhub
MIT License
380 stars 60 forks source link

Emit 'close' on loss of peer #4

Closed perguth closed 8 years ago

mafintosh commented 8 years ago

maybe we should rename the connection event to connect and have the close event be disconnect? i think swarm.on('close', ...) should be fired when the actual swarm closes.

perguth commented 8 years ago

I like the more specific disconnect. Harmonizing the terms is certainly good too.

mafintosh commented 8 years ago

Awesome. Released in 2.0.0