.. _cb.onLeave: ================ cb.onLeave(func) ================ Receive a notification when a registered member leaves the room. The ``func`` argument should be a function that receives 1 argument itself, :ref:`user`. Example Usage ------------- .. sourcecode:: javascript cb.onLeave(function(user) { cb.sendNotice('Bye ' + user['user'] + '!'); }); Example Output -------------- .. sourcecode:: text Notice: Bye testuser! Notice: {u'user': u'testuser', u'in_fanclub': False, u'has_tokens': False, u'is_mod': False, u'gender': u'm', u'tipped_recently': True}