node.jsxmppsslnode-xmpp

starttls on node.js > 0.4.0


I came across this thread Node.js HTTPS Secure Error which mentions that the tls module is the way to do TLS on node now. It seems that setSecure() has been dropped. I'm trying to do a STARTTLS for XMPP. This means that the socket will be upgraded midway. How do I go about doing this on node.js > 0.4.0?


Solution

  • Try this: https://gist.github.com/848444