app/js/communication_layer.js
// Adds command to given workspace queue (queue only used for indexing)
Adds command to given workspace queue (queue only used for indexing)
Adds command to given workspace queue ( queue only used for indexing )
function addToQueue(endpoint, context, jsonObj, guid) {
    if (workspaceQueues[guid].length == 0) {
        workspaceQueues[guid].push([endpoint, context, jsonObj]);
        queueOverlay("index");
        postRequest(endpoint, context, jsonObj);
    }
    else {
        workspaceQueues[guid].push([endpoint, context, jsonObj]);
    }
    console.log("Added", [endpoint, context], "to " + guid + "queue:  " + workspaceQueues[guid].length);
}
function addToQueue ( endpoint , context , jsonObj , guid ) { if ( workspaceQueues [ guid ] . length == 0 ) { workspaceQueues [ guid ] . push ( [ endpoint , context , jsonObj ] ) ; queueOverlay ( "index" ) ; postRequest ( endpoint , context , jsonObj ) ; } else { workspaceQueues [ guid ] . push ( [ endpoint , context , jsonObj ] ) ; } console . log ( "Added" , [ endpoint , context ] , "to " + guid + "queue:  " + workspaceQueues [ guid ] . length ) ; }
Adds command to given workspace queue (queue only used for indexing)
Adds command to given workspace queue ( queue only used for indexing )
// If queue is empty, add to queue run command immediately  // Enabling overlay to disable search functionality if command requires indexing // Make post request // If queue is not empty, add command to queue and wait