> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Native MQTT

> Capture and publish MQTT 5 QoS 1 messages on your app.

Follow the [Streams mounting example](https://docs.bijection.com/integrations/native-kafka.md#mount-and-start) with `mqttReceiver` from `@bijectionhq/app-streams` and mode `mqtt`. Seal JSON with `username`, `password`, `clientId`, `topic`, `publishTopic` and `epoch`. Use implicit TLS, direct socket egress, one MQTT 5 persistent client ID and exact topics. Reserve the client ID for the mount. Grant only the named topic access and configure session retention for at least one day. On a replacement binding, give the installation a fresh epoch.

The mount subscribes at QoS 1 without requesting retained snapshots. Producers send non-retained QoS 1 messages without expiry and set exactly one `bijection-id` user property as a stable event identity. Bijection retains one message of up to 24 KiB at its installed label. A later exchange sends PUBACK for a redelivery only after matching the committed identity and body digest. A packet ID is scoped to the broker session. It is never used as the event key.

A broker-reported missing session is a continuity gap. On resume, a quiet session is ambiguous and surfaces as a failed pass until the mount sees delivery evidence. Arrange periodic traffic if this source needs positive idle health. MQTT has no historical offset or gap proof for broker-side queue eviction. Prior Bijection rows and Files remain readable after acknowledgement.

Use `outgoing.publish` with a unique `id`, canonical base64 `data` and `key: null`. The broker's QoS 1 PUBACK confirms the publish exchange. Delivery to or processing by a subscriber has its own result. A lost acknowledgement settles the task `Unknown`. [Device topic presets](https://docs.bijection.com/integrations/native-iot.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.