distress.js is a drop-in library for resilience to network interference