Transport specification.
Returns the correct module for the given value
conn :: Hedwig.Conn.t
data :: term
opts :: any
socket :: port
Returns the correct module for the given value.
iex> Hedwig.Transport.module(:tcp) Hedwig.Transports.TCP
connected?(conn) :: boolean
get_transport(conn) :: term
reset_parser(conn) :: term
send(conn, data) :: conn
start(conn) :: conn
stop(conn) :: term
upgrade_to_tls({conn, list}) :: term
use_zlib({conn, opts}) :: term