@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
18 lines • 575 B
TypeScript
import type { TAuthenticationResult, TPacketType } from "./types.ts";
/**
* ConnackPacket is sent from the server to the client in response to a connect packet.
* It indicates that the connect is accepted.
*/
export type ConnackPacket = {
type: TPacketType;
sessionPresent: boolean;
returnCode: TAuthenticationResult;
};
export declare const connack: {
encode(packet: ConnackPacket): {
flags: number;
bytes: number[];
};
decode(buffer: Uint8Array, _flags: number): ConnackPacket | undefined;
};
//# sourceMappingURL=connack.d.ts.map