yellowstone icon indicating copy to clipboard operation
yellowstone copied to clipboard

fix #83

Open GyeongHoKim opened this issue 1 month ago • 0 comments

Description

node.js that using RTSPClient crashes when ECONNRESET of RTSPServer because it does not handles that error. fixed RTSPClient.ts

  1. emit "error" event to handle errors after connection(including ECONNRESET
  2. 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

GyeongHoKim avatar Jun 10 '24 12:06 GyeongHoKim