提交 931781b7 编写于 作者: J Joseph Mullins 提交者: Joseph Mullins

Update ActionCable Rebroadcasting a Message documentation

Replace broadcast_to with ActionCable.server.broadcast to be inline with its partner, #stream_from
上级 968b59af
......@@ -333,7 +333,7 @@ class ChatChannel < ApplicationCable::Channel
end
def receive(data)
ChatChannel.broadcast_to("chat_#{params[:room]}", data)
ActionCable.server.broadcast("chat_#{params[:room]}", data)
end
end
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册