Node.js-Design-Patterns-Third-Edition icon indicating copy to clipboard operation
Node.js-Design-Patterns-Third-Edition copied to clipboard

FailSafeSocket doesn't change from online to offline

Open z2mi opened this issue 1 year ago • 3 comments

Hi, I ran client and server in 09-behavioral-design-patterns/02-state-failsafe-socket directory and It seems that FailSafeSocket never changes from online to offline state. We need some code in _safeWrite method in OnlineState to change state to offline if error happens.

z2mi avatar Apr 11 '23 08:04 z2mi