Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple way to use hubot-xmpp as a component? #46

Open
maltekrupa opened this issue Oct 6, 2013 · 2 comments
Open

A simple way to use hubot-xmpp as a component? #46

maltekrupa opened this issue Oct 6, 2013 · 2 comments

Comments

@maltekrupa
Copy link

Hi,

I already tried to simply change

@client = new Xmpp.Client

to

@client = new Xmpp.Component

but this only gives me some undefined errors.

[Sun Oct 06 2013 15:35:17 GMT+0200 (CEST)] ERROR Error: XML parse error
undefined
Reconnect in 0
[Sun Oct 06 2013 15:35:17 GMT+0200 (CEST)] ERROR Error: XML parse error
undefined
Reconnect in 0
[Sun Oct 06 2013 15:35:17 GMT+0200 (CEST)] ERROR Error: XML parse error
undefined
Reconnect in 0
[Sun Oct 06 2013 15:35:17 GMT+0200 (CEST)] ERROR Error: XML parse error
undefined
Reconnect in 0

Since node-xmpp understands components without problems, I'm a bit confused about this error.
Maybe someone has a thought on this?

Thanks a lot in advance!

Regards

@markstory
Copy link
Contributor

I have no idea. I'm not overly familiar with the differences between the Client and Component objects. Why do you need to use the Component instead of the Client?

@maltekrupa
Copy link
Author

Hi markstory,

thanks a lot for your quick reply. :)

I have to use a component since we are using the LDAP credentials for the clients and I'm not allowed to create a user only for the bot. Nonetheless I have working credentials for a component.

BTW: A component is basically a client with more rights in terms of traffic that reaches the it.
A user only gets data sent to his specific address (e.g. [email protected]).
A component gets all the data sent to a specific sub domain (e.g. @jabber.bar.com).

There isn't a big difference in the used protocols. More specific: The component only does a handshake at the connection initiation.

Maybe this helps. If you have the free time to look at it, I'd be very happy. If not, I'll take the time to look at it myself when I finally find time for it.
Either way, it's not that urgent. ;)

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants