Package Exports
- telepathy-client
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (telepathy-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.