auth_on_subscribe_m5hooks which act as an application level firewall granting or rejecting subscribe requests.
auth_on_subscribe_m5hooks allow your plugin to grant or reject subscribe requests sent by a client. They also makes it possible to rewrite the subscribe topic and qos. The
auth_on_subscribehook is specified in the Erlang behaviour auth_on_subscribe_hook and the
auth_on_subscribehook in the auth_on_subscribe_m5_hook behaviour available in the vernemq_dev repo.
on_unsubscribe_m5hooks allow your plugin to get informed about an unsubscribe request. They also allow you to rewrite the unsubscribe topic if required. The
on_subscribehook is specified in the Erlang behaviour on_unsubscribe_hook and the
on_unsubscribe_m5hook in the on_unsubscribe_m5_hook behaviour available in the vernemq_dev repo.