Skip to content

cardo-org/rembus.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rembus for javascript

RPC server

import rem from 'rembus';

function myservice(x,y) {
    return x + y;
}

// Get rembus component that connect via plain websocket on port 8000 
let rb = rem.bus('ws://localhost:8000');

// Make myservice available to remote client components
await rb.expose(myservice)

RPC client

import rem from 'rembus';

// Default url is ws://localhost:8000
let rb = rem.bus()

// Invoke remote service
let result = await rb.rpc("myservice", 1, 2)

// Terminate connection
await rb.close()

About

javascript package for Rembus protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published