go-xmpp/_examples/xmpp_component/README.md

22 lines
590 B
Markdown
Raw Normal View History

2019-05-31 16:56:24 +00:00
# xmpp_component
This component will connect to ejabberd and act as a subdomain "service" of your primary XMPP domain
(in that case localhost).
2019-06-18 08:06:50 +00:00
This component does nothing expect connect and show up in service discovery.
2019-05-31 16:56:24 +00:00
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:
```yaml
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".