Rate limiting chat messages

Hello!,

Does mediasoup implement any means of rate limiting messages sent from one peer to the other peers in the same room?

It is looking as though the only way one might be able to rate limit messages is to create a consumer server side, and have that consumer track sent messages, and only forward messages onwards to other clients if they do not exceed their rate limit. This isnt an ideal solution though, as it adds significant overhead to the server, and complicates how to forward messages to other clients/requires significant changes to the SFU backend.

Is there a better way?

Cheers everyone,
Matt

Actually is an ideal solution.