Add type=rpc_response, so clients can identify replies to RPC commands.

This commit is contained in:
Stefan Thomas
2012-11-05 17:32:26 -08:00
parent 66f8fad377
commit 88af3280bc

View File

@@ -285,6 +285,7 @@ void WSConnection::doRPC(Json::Value& jvResult, Json::Value& jvRequest)
jvRequest["params"],
mHandler->getPublic() ? RPCHandler::GUEST : RPCHandler::ADMIN);
jvResult["type"] = "rpc_response";
}else jvResult["error"] = "fieldNotCommand";
}