parser_for
faststream.mqtt.parser.parser_for #
parser_for(version: MQTTVersion) -> type[MQTTBaseParser]
The parser class a Broker version speaks.
One place says it, because the Subscriber that consumes through a parser and the in-memory test broker that encodes for one have to agree on the version.
Source code in faststream/mqtt/parser.py
108 109 110 111 112 113 114 115 116 117 118 | |