UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

18 lines 792 B
import { Client } from "../client/client.ts"; import type { SockConn } from "../socket/socket.ts"; /** * @function getFileData * @param filename * @returns Promise * * Fetches data from a file and returns it as a string * @example * const data = await getFileData("data.txt"); */ export declare function getFileData(filename: string | undefined): Promise<string | undefined>; export declare class TcpClient extends Client { protected connectMQTT(hostname: string, port?: number): Promise<SockConn>; protected connectMQTTS(hostname: string, port?: number, ca?: string[], cert?: string, key?: string): Promise<SockConn>; protected createConn(protocol: string, hostname: string, port?: number, caCerts?: string[]): Promise<SockConn>; } //# sourceMappingURL=tcpClient.d.ts.map