Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 463 Bytes
%% @hidden
-module(on_unsubscribe_hook).
-include("vernemq_dev.hrl").
%% called as an 'all'-hook, return value is ignored
-callback on_unsubscribe(UserName :: username(),
SubscriberId :: subscriber_id(),
Topics :: [Topic :: topic()]) ->
ok |
{ok, unsub_modifiers()} |
next.
-type unsub_modifiers() ::
%% Change the topics which will be unsubscribed.
[Topic :: topic()].