Not yet finished..but still If you can have look and comment if the approach is right or not.
1) I really want to go away with callback_mode : handle_event_function . But it seems that when we receive data from server, it can be multiple actions(like , connack + publish.. etc), so there I had to go with current implementation and use {internal} events. Want to improve there.
2) Current code has 2 mappings : i) pending_subscriptions ii) Requests. => need to find better way to use only one of them
Not yet finished..but still If you can have look and comment if the approach is right or not.
1) I really want to go away with callback_mode : handle_event_function . But it seems that when we receive data from server, it can be multiple actions(like , connack + publish.. etc), so there I had to go with current implementation and use {internal} events. Want to improve there. 2) Current code has 2 mappings : i) pending_subscriptions ii) Requests. => need to find better way to use only one of them