Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-aiomas

A node.js library for interacting with python's aiomas library.

Currently only implementing a channel and RPC client. Quality is alpha-level, this has only been tested a little so far.

Usage

const { openConnection } = require("aiomas");

// takes the same options as `net.Socket#connect`
// so you can open both TCP and unix sockets ✨
const rpc = openConnection({ port: 5555 });

// you access remote methods at `rpc.remote`, just like in python
// when you call the remote method you get a Promise back
rpc.remote.add(3, 4)
    .then((result) => console.log(`What's 3 + 4? ${result}`))
    .catch((err) => console.error(err));

// following the service tree
rpc.remote.nested.do_something([1, 2, 3]).then(someCallback);

Roadmap

No personal promises on these, but PRs welcome.

  • aiomas.rpc-compatible client implementation
  • aiomas.channel server implementation
  • aiomas.rpc server implementation
  • aiomas.agent implementation, maybe

About

RPC tools compatible with python's aiomas

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.