コード例 #1
0
ファイル: __init__.py プロジェクト: Meistache/leap_pycommon
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)
コード例 #2
0
ファイル: __init__.py プロジェクト: leapcode/leap_pycommon
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)