# Class: MqttTopicSubscription

## vertx-mqtt-js/mqtt_topic_subscription~ MqttTopicSubscription

#### new MqttTopicSubscription()

Represents a subscription to a topic

Source:
  - vertx-mqtt-js/mqtt_topic_subscription.js, line 29

### Methods

#### qualityOfService() → {Object}

Source:
  - vertx-mqtt-js/mqtt_topic_subscription.js, line 56

##### Returns:

Quality of Service level for the subscription

Type
  Object

#### topicName() → {string}

Source:
  - vertx-mqtt-js/mqtt_topic_subscription.js, line 40

##### Returns:

Subscription topic name

Type
  string