New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

telepathy-server

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telepathy-server

Library for remote procedure calls using proxy objects

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

Telepathy Server

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-server

Usage

Let's write simple service:

const {Service, Server, Transports: {WebSocketTransport}} = require('telepathy-server');

class DemoService extends Service {
	constructor() {
		// You have to define which methods should be exposed
		super({}, 'welcome');
	}

	welcome(name) {
	    return `Hello, ${name}.`;
	}
}

const service = new DemoService();
const transports = [new WebSocketTransport({port: 9001})];
const server = new Server(transports, service);

server.start();

See also

  • Telepathy Client

  • Gitlab repository

  • Example

License

This project is licensed under the MIT License.

Keywords

RPC

FAQs

Package last updated on 22 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts