UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

16 lines 496 B
import type { TPacketType } from "./types.ts"; /** * DisconnectPacket is the final control packet sent from the client to the server. * It indicates that the client is disconnecting cleanly. */ export type DisconnectPacket = { type: TPacketType; }; export declare const disconnect: { encode(_packet: DisconnectPacket): { flags: number; bytes: number[]; }; decode(buffer: Uint8Array, _flags: number): DisconnectPacket; }; //# sourceMappingURL=disconnect.d.ts.map