.. _cb.onStart:

=========================
cb.onStart(func)
=========================

Receive a notification when an app has started. The ``func``
argument should be a function that receives 1 argument itself, :ref:`user`.

Example Usage
-------------

.. sourcecode:: javascript

    cb.onStart(user => {
        cb.sendNotice(user['user'] + ' started an app!');
    });

Example Output
--------------

.. sourcecode:: text

    Notice: testuser started an app!