Connecting to Google Talk over XMPP on Node.js

前端 未结 2 653
灰色年华
灰色年华 2020-12-23 12:37

I\'ve tried using a variety of XMPP libraries for Node.js, and am having trouble connecting to Google Talk\'s XMPP servers. I\'m wanting to connect and read the status of f

2条回答
  •  春和景丽
    2020-12-23 13:33

    Figured it out.

    I was working with some inaccurate examples.

    In my example above, you'll want to change:

    var conn = new xmpp.Component({...})
    

    ...to...

    var conn = new xmpp.Client({...})
    

提交回复
热议问题