Skip to content

a project to provide rpc using aiohttp and websockets. Intention is to also provide authentication and to limit concurrent access to the object being served over rpc.

Notifications You must be signed in to change notification settings

mentaal/aio_rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIO-RPC (WIP)

Client and Server implementation of JSON-RPC 2.0 specification using aiohttp and websockets.

Motivation

The idea behind this framework is to provide exclusive access to the object being served. The reason for this is that the object can represent a service which requires this such as a piece of hardware. An attempt is made to free the resource during inactivity.

Server

Server serves up a class object. Server can host using either http or https protocols. Server expects client to login and obtain exclusive access to the object being served.

Certificate

To generate a self signed certificate using openssl, you can do so with the following command:

openssl req -x509 -newkey rsa:4096 -out cert.pem -keyout cert.pem -nodes

Client

Client needs to login at: '/login' Client then needs to grab exclusive access at: '/get_access' Client then upgrades connection to websockets or websockets secure depending on the server's setup.

Examples

Example server and client can be seen within the examples directory.

About

a project to provide rpc using aiohttp and websockets. Intention is to also provide authentication and to limit concurrent access to the object being served over rpc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages