Class: MDNS

MDNS()

Discovery class that provides the functionality to broadcast this PROCEED engine and finding other engines using mdns (bonjour).

Constructor

new MDNS()

Source:

Methods

(async) discoveredEngines(taskID)

Return the current list of online (discovered) proceed engines in the network.

Parameters:
Name Type Description
taskID

The taskID of the dispatcher task

Source:

find()

Start finding other PROCEED engines in the network.

Source:

onServiceUpEvent(cb)

Set function that is triggered when the browser finds a new service

Parameters:
Name Type Description
cb function

the send callback that pushes the new service to the universal part

Source:

(async) publish()

Publish this engine as a PROCEED type.

Source:

removeDiscoveredService(args)

Removes a service with the given id and port from the list of found services

Can be used if a service that is supposedly discovered can't be reached using the published ip and port

Parameters:
Name Type Description
args Array

contains the ip of the service as its first and the port as its second element

Source:

(async) resetDiscovery()

Resets the discovery of services in the local network and republishes if it is currently publishing (Might be used when connecting to a network after a disconnect)

Source: