Primus
An abstraction layer for real-time to prevent module lock-in
...No more API rewrites needed when your project requirements change, the framework gets abandoned or simply breaks down. Built-in reconnect, it just works. The reconnect is controlled by a randomised exponential back-off algorithm to reduce server stress. Offline detection, Primus is smart enough to detect when users drop their internet connection (switching WIFI points/cell towers for example) and reconnects when they are back online.