rails 5 action cable 服务器部署

  config/environments/development.rb

  config.action_cable.url = 'ws://10.129.56.223:28080'                         // 浏览器访问的websoket 服务地址
  ActionCable.server.config.disable_request_forgery_protection = true   //  允许远程请求访问

原文地址:https://www.cnblogs.com/lizhenjiang/p/7064649.html