Hedwig.Conn

The Hedwig connection.

This module defines a struct and the main functions for working with XMPP connections.

Summary

Types

config :: %{}
t :: %Hedwig.Conn{transport: module, config: config, pid: pid, client: pid, socket: port, ssl?: boolean, compress?: boolean, features: Hedwig.Conn.Features.t}

Functions

authenticate(conn)
await(conn)
bind(conn)
connect(config)

Specs

connect(config :: config) :: t
join_rooms(conn)
negotiate_features(conn)
recv(conn, message)
reset_parser(conn)
send_presence(conn)
session(conn)
start(config)

Specs

start(config :: config) :: no_return

Starts a connection process.

start_stream(conn)
start_tls(conn)