According to the MQTT specification version 3.1.1, statement 3.8.3-3:
The payload of a SUBSCRIBE packet MUST contain at least one Topic Filter / QoS pair. A SUBSCRIBE packet with no payload is a protocol violation
This pull requests forces an Invalid Argument exception upon calling the subscribe function with an empty list of topics.
According to the MQTT specification version 3.1.1, statement 3.8.3-3:
The payload of a SUBSCRIBE packet MUST contain at least one Topic Filter / QoS pair. A SUBSCRIBE packet with no payload is a protocol violation
This pull requests forces an
Invalid Argument
exception upon calling the subscribe function with an empty list of topics.