2
0
mirror of https://github.com/FluuxIO/go-xmpp synced 2024-11-15 18:13:07 +00:00
go-xmpp/_examples/xmpp_component
Mickael Remond d4a8616da2
Move examples out of the cmd directory
They are now in _examples dir.
Fix #26
2019-06-08 11:34:09 +02:00
..
README.md Move examples out of the cmd directory 2019-06-08 11:34:09 +02:00
xmpp_component.go Move examples out of the cmd directory 2019-06-08 11:34:09 +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).

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".