node-opcua-client
Version:
pure nodejs OPCUA SDK - module client
22 lines (21 loc) • 1.19 kB
TypeScript
/**
* @module node-opcua-client
*/
import type { ServerOnNetwork } from "node-opcua-service-discovery";
import type { ApplicationDescription, EndpointDescription } from "node-opcua-service-endpoints";
export interface FindServerResults {
servers: ApplicationDescription[];
endpoints: EndpointDescription[];
}
export declare function findServersAsync(discoveryServerEndpointUri: string): Promise<FindServerResults>;
/**
* extract the server endpoints exposed by a discovery server
*/
export declare function findServers(discoveryServerEndpointUri: string, callback: (err: Error | null, result?: FindServerResults) => void): void;
export declare function findServers(discoveryServerEndpointUri: string): Promise<FindServerResults>;
export declare function findServersOnNetworkAsync(discoveryServerEndpointUri: string): Promise<ServerOnNetwork[]>;
/**
* extract the server endpoints exposed by a discovery server
*/
export declare function findServersOnNetwork(discoveryServerEndpointUri: string): Promise<ServerOnNetwork[]>;
export declare function findServersOnNetwork(discoveryServerEndpointUri: string, callback: (err: Error | null, servers?: ServerOnNetwork[]) => void): void;