code: function subscribe() {
    console.log('Subscribing client ' + clientId + ' to topic: ' + topics.subscribe);
    client.subscribe(topics.subscribe);
    isSubscribed = true;
  }
docs: subscribe Subscribes to your topics