telepathy-client
v0.2.2
Published
Library for remote procedure calls using proxy objects
Downloads
1
Maintainers
Readme
Telepathy Client
Telepathy is a lightweight Node.js library for remote procedure calls using proxy objects.
Getting Started
To work with Telepathy you must have installed Node.js version 8 or higher.
Installation
npm install --save telepathy-client
Usage
const {Client, Transports: {WebSocketTransport}} = require('telepathy-client');
(async () => {
const transport = new WebSocketTransport();
const client = new Client(transport);
const service = client.getProxy();
await transport.connect('ws://localhost:9001');
console.log(await service.welcome('world'));
})();
See also
License
This project is licensed under the MIT License.