UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

15 lines 626 B
import type { Context } from "../context.ts"; import { type PubrecPacket } from "../deps.ts"; /** * Handles PUBREC (QoS 2 Publish Received) packets * @param ctx - The connection context * @param packet - The PUBREC packet received from the client * @returns Promise that resolves when handling is complete * @description * For QoS 2 message flow: * 1. Discards the original publish message * 2. Stores that PUBREC was received for the packet ID * 3. Sends PUBREL packet in response */ export declare function handlePubrec(ctx: Context, packet: PubrecPacket): Promise<void>; //# sourceMappingURL=handlePubrec.d.ts.map