onAgentStateChange (Available/Unavailable)
The state event triggers when the agent changes it's state to either available/unavailable
window.acquire = window.acquire || [];
acquire.push(function(app){
app.on('state',function(){console.log(arguments)});
app.trigger('state',1,2,3);
});Last updated