code: def onConnect(self, client, userdata, flags, rc):
          
          for sub in self.subsciption:
              (result, mid) = self.client.subscribe(sub)
docs: !
          The callback for when the client receives a CONNACK response from the server.
  
          @param client
          @param userdata
          @param flags
          @param rc