yellowstone
yellowstone copied to clipboard
fix #83
Description
node.js that using RTSPClient crashes when ECONNRESET of RTSPServer because it does not handles that error. fixed RTSPClient.ts
- emit "error" event to handle errors after connection(including ECONNRESET
- emit "close" event when RTSPClient closes its connection for better debugging
if this pull request merges, users can handle ECONNRESET by
const client = new RTSPClient(username, password);
client.on("error", () => { // reconnect or something });
Related Issue
Fixes #83