.. _cb.onBroadcastStop:

=========================
cb.onBroadcastStop(func)
=========================

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

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

.. sourcecode:: javascript

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

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

.. sourcecode:: text

    Notice: testuser stopped broadcasting!