# Class: MqttTopicSubscription

## vertx-mqtt-server-js/mqtt_topic_subscription~ MqttTopicSubscription

#### new MqttTopicSubscription()

Represents a subscription to a topic

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

### Methods

#### qualityOfService() → {Object}

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

##### Returns:

Quality of Service level for the subscription

Type
  Object

#### topicName() → {string}

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

##### Returns:

Subscription topic name

Type
  string