UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

13 lines 673 B
import type { Context } from "../context.ts"; import { type SubscribePacket } from "../deps.ts"; /** * @function handleSubscribe * @description Processes an MQTT SUBSCRIBE packet * @param {Context} ctx - The connection context * @param {SubscribePacket} packet - The SUBSCRIBE packet received from the client * @returns {Promise<void>} * @throws {Error} If subscription processing fails * @remarks The order of return codes in the SUBACK Packet MUST match the order of Topic Filters in the SUBSCRIBE Packet [MQTT-3.9.3-1] */ export declare function handleSubscribe(ctx: Context, packet: SubscribePacket): Promise<void>; //# sourceMappingURL=handleSubscribe.d.ts.map