git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: cfba6fdcb78b4019f623639fbd7dfecaacb4ab1c

Files: cfba6fdcb78b4019f623639fbd7dfecaacb4ab1c / defaultAgent.js

238 bytesRaw
1exports.run = async (message, kernel) => {
2 const to = message.to[message.hops - 1]
3 if (to) {
4 return kernel.send(message)
5 } else if (message.data.getValue) {
6 return (await kernel.state.get(message.data.getValue)).value
7 }
8}
9

Built with git-ssb-web