node-opcua-transport
Version:
pure nodejs OPCUA SDK - module transport
20 lines (19 loc) • 918 B
TypeScript
/**
* @module node-opcua-transport
*/
import { BinaryStream, type OutputBinaryStream } from "node-opcua-binary-stream";
import type { BaseUAObject } from "node-opcua-factory";
export type ConstructorFunc = new () => BaseUAObject;
export declare function decodeMessage(stream: BinaryStream, classNameConstructor: ConstructorFunc): BaseUAObject;
export declare function packTcpMessage(msgType: string, encodableObject: BaseUAObject): Buffer;
export interface ParsedEndpointUrl {
protocol: string;
hostname: string;
port: string | null;
pathname: string | null;
auth: string | null;
href: string;
}
export declare function parseEndpointUrl(endpointUrl: string): ParsedEndpointUrl;
export declare function is_valid_endpointUrl(endpointUrl: string): boolean;
export declare function writeTCPMessageHeader(msgType: string, chunkType: string, totalLength: number, stream: OutputBinaryStream): void;