Blocking connections if maxConns limit is reached with y-webrtc

Right now if new clients connect over the maxConns limit the app just works normally, I’ve tried to check the number of connected users againts maxConns but it just kicks everyone out, so I’m wondering if there’s some nice solution for this that I’m missing.

Btw I’m using default Yjs heroku servers so i would need a solution on the client side ( react app )