def connect(self): """ Open connection to server, must be closed manually. :return: nothing """ self.channel = grpc.insecure_channel(self.address) self.stub = core_pb2_grpc.CoreApiStub(self.channel)
def connect(self) -> None: """ Open connection to server, must be closed manually. :return: nothing """ self.channel = grpc.insecure_channel( self.address, options=[("grpc.enable_http_proxy", self.proxy)] ) self.stub = core_pb2_grpc.CoreApiStub(self.channel)