Package component is used to establish XEP-0114: Jabber Component Protocol connections.
const ( NSAccept = `jabber:component:accept` )
A list of namespaces used by this package, provided as a convenience.
func Negotiator ¶
Negotiator returns a new function that can be used to negotiate a component protocol connection when passed to xmpp.NewSession.
It currently only supports the client side of the component protocol. If recv is true (indicating that we are receiving a connection on the server side) the returned xmpp.Negotiator will panic.
func NewSession ¶
NewSession initiates an XMPP session on the given io.ReadWriter using the component protocol from the perspective of the component.