postgreSQL的动作电缆配置?

ved*_*ant 6 ruby-on-rails-5 actioncable

如何配置文件,config/cable.yml看起来像postgreSQL适配器?

Dav*_*vid 6

这对我有用:

# config/cable.yml
production:
  adapter: postgresql

development:
  adapter: postgresql

test:
  adapter: postgresql
Run Code Online (Sandbox Code Playgroud)

postgresql适配器使用pg notify命令.请记住,消息正文必须小于8000字节.