kopera / erlang-mqtt

Erlang/Elixir low level MQTT protocol implementation
Other
16 stars 5 forks source link

initial refactoring of mqtt client. work in progress #5

Closed harshadkopera closed 6 years ago

harshadkopera commented 6 years ago

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