onOffline ( data )

Triggers when the chat widget goes offline. This refers to when the last operator leaves the system.

The "data" object is sent as a parameter, containing the following properties:

PropertyTypeDescription
real boolean "true" if that is an actual switch to the "offline" status and false if that is simply a repeat initialization of the offline window (for instance, upon switching to a new page) without status change

Examples

  1. Using jQuery
    $(document).on("netroxoffline", function(event, data) {
        // Your actions
    });       
  2. Using the nsc_API object
    nsc_API = { /* ... */ };
    
    nsc_API.onOffline = function(data) {
        // Your actions
    };        

All rights reserved. Copyright © 2017 Netrox SC
Host CMS