Can't connect to GCM using node-xmpp client

后端 未结 3 926
悲哀的现实
悲哀的现实 2021-01-22 17:23

I am attempting to run gcm server using node-xmpp, but xmpp client does not seem to open at all and closes after timeout.

var xmpp = require(\'node-xmpp-client\'         


        
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-22 18:19

    I followed this from gcm google groups and it worked for me. And for timeouts you can try xmppClient.connection.socket.setTimeout(0) xmppClient.connection.socket.setKeepAlive(true, 10000) Don't forget to whitelist your server ip in google console.

提交回复
热议问题