Beispiel #1
0
def emit(event, *content):
    """
    Send an event.

    :param event: The event to be sent.
    :type event: Event
    :param content: The content of the event.
    :type content: list
    """
    return client.emit(event, *content)
Beispiel #2
0
def emit(event, *content):
    """
    Send an event.

    :param event: The event to be sent.
    :type event: Event
    :param content: The content of the event.
    :type content: list
    """
    if flags.EVENTS_ENABLED:
        return client.emit(event, *content)