mafintosh/peerflix

Close the stream programatically

dennisfrijlink opened this issue · 0 comments

Hi first of all I wanna say that I love peerflix because of it's simplicity.
Currently I'm using it in a node js api:

const stream = peerflix(magnet, { port: port });

This works but I after a stream has started, I cannot open another stream because of the fact that port is already used (makes sense).

How should I close a stream programatically using peerflix?