I am writing a bot in node.js using node-xmpp. So far, it's pretty straightforward, except that I had a problem figuring out how Google Talk handles its user authorization (when accessing a chat with someone NOT on your list).
I will catch all the stanzas that pass and register them on the console, but there is no data coming from the user requesting authorization.
Any explanations of what I should look for, or if this event even occurs via jabber protocol.
[added] I know that technically, when a subscription request is made, the presence stanza is sent with a subscription request. For some reason, I don’t see how they cross the wire using node-xmpp. In addition, I need to figure out a way to determine which presence requests are “waiting” when my bot logs in. I thought (unequivocally) that they would be listed in the list with some kind of flag, but this is not true.
Any help in determining where to go from here would be helpful.
source share