When offline mode is detected socket.io is notified immediately of offline state instead of waiting for heartbeat to fail.