@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
17 lines • 497 B
TypeScript
import type { PacketId, TPacketType } from "./types.ts";
/**
* PubrelPacket is the packet sent by the Server to the Client in response to a
* PubrecPacket. It is the third packet of the QoS 2 protocol exchange.
*/
export type PubrelPacket = {
type: TPacketType;
id: PacketId;
};
export declare const pubrel: {
encode(packet: PubrelPacket): {
flags: number;
bytes: number[];
};
decode(buffer: Uint8Array): PubrelPacket;
};
//# sourceMappingURL=pubrel.d.ts.map