Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.component('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.component()

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

// Terminate connection
await rb.close()

About

javascript package for Rembus protocol

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages