How to use the node-opcua-service-discovery._announcedOnMulticastSubnet function in node-opcua-service-discovery

To help you get started, we’ve selected a few node-opcua-service-discovery examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-server-discovery / src / opcua_discovery_server.js View on Github external
super.start((err) => {
            if (!err) {
                // declare server in bonjour
                _announcedOnMulticastSubnet(this, {
                    applicationUri: this.serverInfo.applicationUri,
                    port: this.endpoints[0].port,
                    path: "/DiscoveryServer",
                    capabilities: this.capabilitiesForMDNS
                });
                //
                this.mDnsResponder = new MDNSResponser();

            }
            done(err);
        });
    }