@lrpc/client
v0.2.0
Published
[](https://travis-ci.org/roziscoding/lrpc) [](./LICENSE) [;
</script>Usage
This package exports an async function createClient, which accepts the URL of your API and provides you with a javascript Proxy object that will convert your function calls into RPCs.
async main () {
const client = await createClient('http://localhost:3000') // This calls a handshake function on the server
const { greeting } = client.greet({ name: 'John' }) // 'Hello, John'
}
main()
.catch(console.error)License
Released under MIT License.
