Rails 5 actioncable ping禁用

时间:2018-01-12 08:00:11

标签: ruby-on-rails websocket ruby-on-rails-5 actioncable

我看到actioncable每3秒向所有打开的websocket连接发送ping。 ping似乎是从这里发送的:https://github.com/rails/rails/blob/master/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee

如何禁用actioncable的ping?

0 个答案:

没有答案