text: /**
   * Created by quanpower on 14-8-18.
   */
  
  
  var mqtt = require('mqtt');
  var KEY = __dirname + '/../mqtt_test/tls-key.pem';
  var CERT = __dirname + '/../mqtt_test/tls-cert.pem';
  var PORT = 8443;
  var options = {
      keyPath: KEY,
      certPath: CERT,
      rejectUnauthorized : false
  };
  var client = mqtt.createSecureClient(PORT, options);
  client.subscribe('messages');
  client.publish('messages', 'Current time is: ' + new Date());
  client.on('message', function(topic, message) {
      console.log(message);
  });