mafintosh / signalhub

Simple signalling server that can be used to coordinate handshaking with webrtc or other fun stuff.
MIT License
667 stars 97 forks source link

Refactored + added close method #22

Closed lukeburns closed 8 years ago

lukeburns commented 8 years ago

Added close method for https://github.com/karissa/hyperdrive-archive-swarm/issues/2

mafintosh commented 8 years ago

added some comments. could you document this method in the readme? also i'm ok with just calling this .close and not supporting .destroy but thats up to you

lukeburns commented 8 years ago

I think I addressed all of your comments in this commit. Is this how you were imagining the close method?

mafintosh commented 8 years ago

Made it throw if .broadcast / .subscribe was called after close. Out in 4.7.0