kyriesent / node-rtsp-stream

Stream any RTSP stream and output to websocket for consumption by jsmpeg (https://github.com/phoboslab/jsmpeg). HTML5 streaming video! Requires ffmpeg.
MIT License
451 stars 166 forks source link

PORT ALREADY IN USE #87

Open enddyrama opened 2 years ago

enddyrama commented 2 years ago

How to detect programmatically if Port already in use? Is there any kind if flag or method which can help me know if port is already in use? is there any way to stream.stop() if i use POST method without Error: listen EADDRINUSE: address already in use?