#[0]​ why "max_message_length": 524288?

Just wondering if this number has a specific meaning…

Reply to this note

Please Login to reply.

Discussion

it limits the size of a websocket frame to half a megabyte, used to be 128 kB but people that gathered more than 2k followers were having issues with "lost" followers

good thing is if you run your own relay you can even set it to whatever you want.

I’m a fan of reasonable limits so the relays can’t be abused.

Oh, (1024*1024)/2… thanks! :D

Funny fact: I noticed NIP-01 specifies that subscription_id should be a “non-empty string of max length 64 chars”.

Tested eden and it allows larger ones. Wonder who would use such large ids, though…

You’d be surprised how many clients make poor subscription ID choices.

We currently have an issue with snort because they use our full filter.nostr.wine urls with the npub and parameters + additional strings as sub ID and that exceeds our max of 71.

😅