{"version":"1.0","type":"rich","title":"Gist 5161583","description":"This visualization demonstrates a Node.js server’s error-handling pattern using domains to manage ECONNRESET socket hangups. It shows how an HTTP request and response object are added to a domain, with an error listener that logs non-reset errors and disposes the domain afterward. The code uses the `domain.create()`, `reqd.add()`, `reqd.on('error')`, and `reqd.dispose()` APIs from Node’s core domain module, integrated as middleware via `app.use()`. The example highlights the flow of middleware execution and error interception in a server context.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5161583?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}