Rate limiting WebSockets subscriptions

Is there any possibility to limit WebSockets subscriptions rate per minute for each IP address?