Skip to content

cardo-org/rembus.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 19, 2024
64c5b39 · Jun 19, 2024

History

4 Commits
Jun 19, 2024
Jun 19, 2024
Mar 2, 2024
Mar 2, 2024
Jun 19, 2024
Jun 19, 2024

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