An end user may want to ping the connected RNode to make sure it is still alive, and update a dapp's UI or take other appropriate action when it is not. RNode should export another method to do this.
Possible implementation: Use the eval service to evaluate the stopped process (0) and if a response comes back, the node is alive.
Ideally the function would take no args and return bool.
Copied from original issue: JoshOrndorff/RChain-API#6
From @JoshOrndorff on August 27, 2018 15:20
An end user may want to ping the connected RNode to make sure it is still alive, and update a dapp's UI or take other appropriate action when it is not. RNode should export another method to do this.
Possible implementation: Use the eval service to evaluate the stopped process (
0
) and if a response comes back, the node is alive.Ideally the function would take no args and return bool.
Copied from original issue: JoshOrndorff/RChain-API#6