Node.js-Design-Patterns-Third-Edition
Node.js-Design-Patterns-Third-Edition copied to clipboard
FailSafeSocket doesn't change from online to offline
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.