_serve

privex.rpcemulator.base._serve(host='', port=5000, quiet=False, use_coverage=False)[source]

Wrapper function for jsonrpcserver.serve() and quiet_serve(). Can be forked into background.

Sets up SIGTERM hook using pytest_cov.embed.cleanup_on_sigterm() so coverage data is correctly saved when the subprocess is terminated.