1.2.0 (2025-03-18)
Features
✅ index.ts: added late response handling with onLateResponse callback (a7eab29)
- Introduced
allowLateResponseAfterTimeoutflag insendRequestmethod to enable late response handling. - Added
onLateResponsecallback insendRequestmethod to handle late responses after request timeout. - Modified
sendRequestto store timed-out requests conditionally intimedOutRequestsobject. - Updated response handler to invoke
onLateResponsefor late responses. - Improved error handling by passing
CustomErroror response to the callback. - Added detailed logging for late response handling.
- Updated README with documentation for late response handling and new error codes.
- Updated
auth-serviceexample to demonstrate late response handling in the README.
This feature allows users to handle late responses gracefully, providing better flexibility for real-time communication in microservices.