Client and Server implementation of JSON-RPC 2.0 specification using aiohttp and websockets.
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 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.
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 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.
Example server and client can be seen within the examples directory.