UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

11 lines 574 B
import type { Context } from "../context.ts"; import { type AnyPacket } from "../deps.ts"; /** * Handles incoming MQTT packets based on their type and connection state * @param ctx - The connection context containing client state and configuration * @param packet - The MQTT packet to handle * @throws Error if receiving unexpected packet types or packets before connect * @returns Promise that resolves when packet handling is complete */ export declare function handlePacket(ctx: Context, packet: AnyPacket): Promise<void>; //# sourceMappingURL=handlePacket.d.ts.map