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 |
find()
Start finding other PROCEED engines in the network.
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 |
(async) publish()
Publish this engine as a PROCEED type.
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 |
(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)