The API should reuse one session object, this has significant performance benefits, because all requests will reuse the same connection.
At the moment, the session is initialized in RpcApi() constructor. However, each request initializes a new RpcApi. This needs to be refactored somehow.
The API should reuse one session object, this has significant performance benefits, because all requests will reuse the same connection.
At the moment, the session is initialized in RpcApi() constructor. However, each request initializes a new RpcApi. This needs to be refactored somehow.