git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 05c4e2d027ee79f709d87c92e48f83e9cb3489ad

Files: 05c4e2d027ee79f709d87c92e48f83e9cb3489ad / defaultAgent.js

244 bytesRaw
1exports.run = async (message, kernel) => {
2 const to = message.nextPort()
3 if (message.toPort) {
4 return kernel.send(to, 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