Hedwig.Client

XMPP Client

Summary

Functions

Adds a monitored handler

Starts the connection process

Returns the client configuration

Notifies the event manager of an incoming stanza

Start all GenEvent handlers for the client

Starts a GenEvent manager

Types

t :: %Hedwig.Client{config: term, conn: term, event_manager: term, handlers: term, jid: term, nickname: term, password: term, resource: term, rooms: term}

Functions

add_mon_handler(client, arg)

Adds a monitored handler.

connect(pid)

Starts the connection process.

get(pid)

Returns the client configuration.

get(pid, key)
handle_stanza(pid, stanza)

Notifies the event manager of an incoming stanza.

reply(pid, stanza)
start_event_handlers(pid)

Start all GenEvent handlers for the client.

start_event_manager(pid)

Starts a GenEvent manager.

start_link(config)

Specs

start_link(config :: %{}) :: {:ok, client :: pid}