hubot-xmpp icon indicating copy to clipboard operation
hubot-xmpp copied to clipboard

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

Open maltekrupa opened this issue 12 years ago • 2 comments

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

maltekrupa avatar Oct 06 '13 13:10 maltekrupa

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?

markstory avatar Oct 07 '13 12:10 markstory

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

maltekrupa avatar Oct 07 '13 15:10 maltekrupa