             data: data
         .then (doc) ->
             source
+
+    doPing: (cfg) ->
+        @set "source.ping", Em.run.later(@, ->
+            Em.$.ajax
+                url: cfg.href
+            doPing cfg
+        , cfg.timeout)
+
 
     sendAjax: (req) ->
         req.dataType = "json"

        model_id = req.params.openxpki.model_id

        if not source.get("navEntries.length") or model_id in @needReboot
            @sendAjax data: 
                page: "bootstrap!structure"
                baseurl: window.location.pathname



    source: Em.computed -> Em.Object.create
        page: null
        ping: null
        refresh: null
        structure: null
        status: null
