1 repository
Utilities that extend the functionality of WebSocket instances via the decorator pattern.
Distinct from WebSocket Utilities: None of the candidates capture the specific 'decorator' identity of adding behavior to a standard JS instance.
Explore 1 awesome GitHub repository matching web development · WebSocket Decorators. Refine with filters or upvote what's useful.
reconnecting-websocket is a JavaScript utility that wraps the standard WebSocket API to provide automatic reconnection and session management. It functions as a decorator for WebSocket instances, ensuring that dropped network connections are restored to maintain continuous real-time data streaming. The library implements an API-compatible wrapper, allowing it to be integrated into existing projects without requiring changes to the underlying code. It utilizes exponential backoff polling to schedule reconnection attempts at increasing intervals and provides a mechanism to force a manual connec
Functions as a lightweight decorator that adds automatic reconnection behavior to standard JavaScript WebSocket instances.