@BoraMa answer extension:
You can override the constant on the server side as follows:
On the client side, you also need to override the value:
Note that this approach is usually a very bad idea: messing around with internal variables is one of the direct ways to make mistakes and problems.
In fact, a ruby will even warn you:
config/initializers/action_cable.rb:7: warning: already initialized constant ActionCable::Server::Connections::BEAT_INTERVAL
Use this only if you know what you are doing.
source share