Menu
Welcome
Quick start guide
Installing on your site
Connecting as operator
Operator commands
API
Operator settings
Roster variables and macroses

Sitehelp API - onReadyOffline

API :: onReadyOffline


Event fired once chat successfully initialized and API ready to be used (there is no online operators)
SITEHELP_API.onReadyOffline (
   callback  // function will be called once chat successfully initialized and API ready to be used (and there is no online operators)

);


Example:

SITEHELP_API.onReadyOffline (DoSomeThings);

function DoSomeThings() {
    // operator is offline, so we can do some "local" things only
};

Copyright 2011-2014 by Sitehelp.im.