'Send a message to all channels in the group.
Sends are delayed until consumer completion. To override this, you
may pass immediately=True.'

def send(self, content, immediately=False):

    from .message import pending_message_store
    if (not isinstance(content, dict)):
        raise ValueError(u'You    can    only    send    dicts    as    content    on    channels.')
    if (immediately or (not pending_message_store.active)):
        self.channel_layer.send_group(self.name, content)
    else:
        pending_message_store.append(self, content)
