Add NIP-11 limitations

This commit is contained in:
Alex Gleason
2023-12-19 17:21:21 -06:00
parent c0dec7c53f
commit 527dc14a86

View File

@ -56,6 +56,11 @@ void RelayServer::runWebsocket(ThreadPool<MsgWebsocket>::Thread &thr) {
{ "supported_nips", supportedNips },
{ "software", "git+https://github.com/hoytech/strfry.git" },
{ "version", APP_GIT_VERSION },
{ "limitation", tao::json::value({
{ "max_message_length", cfg().relay__maxWebsocketPayloadSize },
{ "max_subscriptions", cfg().relay__maxSubsPerConnection },
{ "max_limit", cfg().relay__maxFilterLimit },
}) },
});
if (cfg().relay__info__name.size()) nip11["name"] = cfg().relay__info__name;