Merge pull request #95 from alexgleason/nip11-limitation

Add NIP-11 limitations
This commit is contained in:
Doug Hoyte
2024-07-18 23:39:19 -04:00
committed by GitHub

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;