go-xmpp/_examples/xmpp_component
genofire d9fdff0839 Add constants (enumlike) for stanza types and simplify packet creation (#62)
* Add constants (enumlike) for stanza types
* NewIQ, NewMessage and NewPresence are now initialized with the Attrs struct
* Update examples
* Do not export backoff code. For now, we do not need to expose backoff in the documentation
* Make presence priority an int8
2019-06-22 11:13:33 +02:00
..
README.md Improve component README 2019-06-18 14:36:56 +02:00
xmpp_component.go Add constants (enumlike) for stanza types and simplify packet creation (#62) 2019-06-22 11:13:33 +02:00

xmpp_component

This component will connect to ejabberd and act as a subdomain "service" of your primary XMPP domain (in that case localhost).

This component does nothing expect connect and show up in service discovery.

To be able to connect this component, you need to add a listener to your XMPP server.

Here is an example ejabberd configuration for that component listener:

listen:
...
  -
    port: 8888
    module: ejabberd_service
    password: "mypass"

ejabberd will listen for a component (service) on port 8888 and allows it to connect using the secret "mypass".