/rpc

Remote procedure call library for node.js and browser/react-native which works in both sides and allows to execute methods on the client and the server sides.

Primary LanguageTypeScript

Dual rpc via websockets

Tests Test Coverage

This library helps to organize the remote methods calls via websockets in both directions: from the server to the client and vice versa.

Docs: https://noveogroup.github.io/rpc

The project splits into two parts:

Clent-side class Client

Can be imported from the @noveo/dual-rpc-ws/client

import Client from '@noveo/dual-rpc-ws/client';

Documentation for it can be found here: https://noveogroup.github.io/rpc/classes/client.html

Server-side class Server

Can be imported from the @noveo/dual-rpc-ws/server

import Server from '@noveo/dual-rpc-ws/server';
// or
import { Server } from '@noveo/dual-rpc-ws';

Documentation for it can be found here: https://noveogroup.github.io/rpc/classes/server.html