How to use the node-opcua-service-discovery._announcedOnMulticastSubnet.call 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 / src / opcua_server.js View on Github external
RegisterServerManagerMDNSONLY.prototype.start = function(callback)
{
    const self = this;
    assert(self.server);
    assert(self.server instanceof OPCUABaseServer);

    _announcedOnMulticastSubnet.call(self,{
        applicationUri: self.server.serverInfo.applicationUri,
        port: self.server.endpoints[0].port,
        path: "/", //<- to do
        capabilities: self.server.capabilitiesForMDNS
    });
    setImmediate(function() {
        self.emit("serverRegistered");
        setImmediate(callback);
    });
};
RegisterServerManagerMDNSONLY.prototype.dispose = function(){