UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

11 lines 602 B
import type { Context } from "../context.ts"; import type { AnyPacket } from "../deps.ts"; /** * Handles incoming MQTT packets based on the connection state and packet type * @param ctx - The MQTT client context containing connection state and other information * @param packet - The MQTT packet to handle * @throws Error if an unexpected packet is received before connection is established * @throws Error if an unexpected packet type is received after connection */ export declare function handlePacket(ctx: Context, packet: AnyPacket): Promise<void>; //# sourceMappingURL=handlePacket.d.ts.map