A simple way to use hubot-xmpp as a component?
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
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?
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