@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
18 lines • 499 B
TypeScript
import type { PacketId, ReturnCodes, TPacketType } from "./types.ts";
/**
* SubackPacket is sent by the server to the client to confirm receipt and
* processing of a SubscribePacket.
*/
export type SubackPacket = {
type: TPacketType;
id: PacketId;
returnCodes: ReturnCodes;
};
export declare const suback: {
encode(packet: SubackPacket): {
flags: number;
bytes: number[];
};
decode(buffer: Uint8Array): SubackPacket;
};
//# sourceMappingURL=suback.d.ts.map