[test] Added a test againt the broken reconnect 0a1a91aa9bfb4d264b670a1cdd6acb55bf8ed75f
[minor] Added support for the online/offline events
[minor] Add support for online/offline events. #32
[minor] Re-use existing `primus` variables instead of `this` to optimise for minification.
[doc] New events.
Merge branch 'heartbeats'