xmpp: mellium.im/xmpp/component Index | Files

package component

import "mellium.im/xmpp/component"

Package component is used to establish XEP-0114: Jabber Component Protocol connections.

Be advised: This API is still unstable and is subject to change.


Package Files



const (
    NSAccept = `jabber:component:accept`

A list of namespaces used by this package, provided as a convenience.

func Negotiator Uses

func Negotiator(addr jid.JID, secret []byte, recv bool) xmpp.Negotiator

Negotiator returns a new function that can be used to negotiate a component protocol connection when passed to xmpp.NegotiateSession.

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 NewClientSession Uses

func NewClientSession(ctx context.Context, addr jid.JID, secret []byte, rw io.ReadWriter, received bool) (*xmpp.Session, error)

NewClientSession initiates an XMPP session on the given io.ReadWriter using the component protocol.

Package component imports 9 packages (graph). Updated 2019-11-03. Refresh now. Tools for package owners.