github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/test/node/cli.iced (about) 1 2 rpc = require 'framed-msgpack-rpc' 3 assert = require 'assert' 4 5 path = "/tmp/keybase-#{process.env.USER}/keybased.sock" 6 7 x = rpc.createTransport { path } 8 await x.connect defer err 9 if err 10 console.log "error connecting" 11 else 12 c = new rpc.Client x, "keybase.1" 13 await c.invoke 'mykey.keyGenDefault', [{ pushPublic : false }], defer err, response 14 if err? 15 console.log "Err: #{JSON.stringify err}" 16 if response? 17 console.log response 18 x.close() 19 process.exit 0