You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:无法通过AnyCable实现Rails与Go的WebSocket连接

在Rails 5.2中配置AnyCable(对接Go服务器)

我正在尝试给需要与Go服务器通信的Rails 5.2应用配置AnyCable,目前我的Rails项目里的AnyCable配置如下:

default: &default
  rpc_host: "localhost:50051"
  log_grpc: false
  log_file: nil
  debug: false
  # Shortcut to enable GRPC logging and debug level
  log_level: info
  redis_channel: "__anycable__"
  redis_sentinels: []
production: <<: *default
  redis_url: "redis://localhost:6379/1"
development: <<: *default
  redis_url: "redis://localhost:6379/2..."

内容的提问来源于stack exchange,提问作者Cem Baykam

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 11:36:08