Skip to content

mqtt_topic_matches

faststream.mqtt.testing.mqtt_topic_matches #

mqtt_topic_matches(pattern: str, topic: str) -> bool
Source code in faststream/mqtt/testing.py
def mqtt_topic_matches(pattern: str, topic: str) -> bool:
    return _topic_matches(_shared_filter_to_actual(pattern), topic)