.. _cb.onBroadcastStart:

=========================
cb.onBroadcastStart(func)
=========================

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

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

.. sourcecode:: javascript

    cb.onBroadcastStart(user => {
        cb.sendNotice(user['user'] + ' started broadcasting!');
    });

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

.. sourcecode:: text

    Notice: testuser started broadcasting!