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\'
I got the same problem and found out that the Connection.startStream() was never called, although the socket was opened successfully.
Here's my pull request: https://github.com/node-xmpp/node-xmpp-client/pull/61
Until it gets merged, you can use my fork, which should work for GCM: https://github.com/Riplexus/node-xmpp-client