UNPKG

@tdengine/websocket

Version:

The websocket Node.js connector for TDengine. TDengine versions 3.3.2.0 and above are recommended to use this connector.

17 lines 681 B
import { WSConfig } from "./config"; export declare function getUrl(wsConfig: WSConfig): URL; export declare function isEmpty(value: any): boolean; export declare function getBinarySql(action: bigint, reqId: bigint, resultId: bigint, sql?: string): ArrayBuffer; export declare function zigzagDecode(n: number): number; export declare function safeDecodeURIComponent(str: string): string; /** * compare two semantic version numbers * @param v1 (e.g., "3.3.6.3-alpha") * @param v2 (e.g., "3.3.6.2") * @returns * 1 -> v1 > v2 * -1 -> v1 < v2 * 0 -> v1 === v2 */ export declare function compareVersions(v1: string, v2: string): number; //# sourceMappingURL=utils.d.ts.map