Files: fe2d3d73d28c55f28860b137e3990bae31fbd26b / defaultAgent.js
232 bytesRaw
1 | exports.run = async (message, kernel) => { |
2 | const to = message.nextPort() |
3 | if (to) { |
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