bus v0.2.0 Bus behaviour View Source

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function publish(topic, message, qos \\ 1, dup \\ 0, retain \\ 0) View Source
publish(any(), any(), any(), any(), any()) :: :ok
Link to this function start_link(module, args) View Source
start_link(any(), any()) :: :ignore | {:error, any()} | {:ok, pid()}
Link to this function subscribe(topics, qoses) View Source
Link to this function unsubscribe(list_of_topics) View Source

Link to this section Callbacks

Link to this callback on_connect() View Source (optional)
on_connect() :: :ok
Link to this callback on_disconnect() View Source (optional)
on_disconnect() :: :ok
Link to this callback on_message(binary) View Source (optional)
on_message(binary()) :: :ok