UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

16 lines 641 B
import type { Context } from "../context.ts"; import { type PubrelPacket } from "../deps.ts"; /** * Handles PUBREL (QoS 2 publish release) packets * * @param ctx - The connection context * @param packet - The PUBREL packet received from the client * @returns Promise that resolves when handling is complete * @description * For QoS 2 message delivery: * 1. Initiates onward delivery of the Application Message * 2. Discards the stored message * 3. Sends PUBCOMP packet with the Packet Identifier */ export declare function handlePubrel(ctx: Context, packet: PubrelPacket): Promise<void>; //# sourceMappingURL=handlePubrel.d.ts.map