Open jcubic opened 2 years ago
Without Open-RPC the service object should be a proxy. Maybe Open-RPC is not needed at all.
TODO: test with:
import Object
let service = rpc* "https://...."
config {"completion" => Object.keys(service)}
while true do
let cmd = parse ask "rpc> "
let ret = service[cmd.name](*cmd.args)
if ret.error then
echo "<red>" + ret.error + "</red>"
else
echo ret.result
end
end
Server echo REPL