@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
13 lines • 663 B
TypeScript
import type { Context } from "../context.ts";
import type { PubackPacket } from "../deps.ts";
/**
* Handles PUBACK (Publish Acknowledgment) packets in MQTT protocol
* @param ctx - The connection context containing the client's state and configuration
* @param packet - The PUBACK packet received from the client
* @description
* PUBACK packets are sent in response to PUBLISH packets with QoS level 1.
* This function removes the original PUBLISH packet from the pending outgoing messages store
* once acknowledgment is received.
*/
export declare function handlePuback(ctx: Context, packet: PubackPacket): void;
//# sourceMappingURL=handlePuback.d.ts.map