UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

28 lines 737 B
import type { ClientId, Payload, QoS, Topic, TPacketType } from "./types.ts"; /** * ConnectPacket is sent from the client to the server to initiate a connection. */ export type ConnectPacket = { type: TPacketType; protocolName?: string; protocolLevel?: number; clientId?: ClientId; username?: string; password?: Uint8Array; will?: { topic: Topic; payload: Payload; retain?: boolean; qos?: QoS; }; clean?: boolean; keepAlive?: number; }; export declare const connect: { encode(packet: ConnectPacket): { flags: number; bytes: number[]; }; decode(buffer: Uint8Array, flags: number): ConnectPacket; }; //# sourceMappingURL=connect.d.ts.map