首先,对ActionCable特性非常陌生。我一直在遵循这里的教程:https://www.driftingruby.com/episodes/push-notifications-with-actioncable 创建了一个名为web_notifications_channel和web_notifications_channel.rb的通道: class WebNotificationsChannel < ApplicationCable::Channel
def sub
我试着用Sidekiq来完成它,但是在完成工作后呈现结果有一个问题(我的应用程序控制器试图在创建之前从DB获取记录)。如果这是一个标准的方法的话?Group.find_by_owner_id(params[:group][:owner_id])here we creates a group更新
我找到了gem sidekiq-status,它可能会对我有帮助,但目前还
嗨,我已经使用Rails5实现了action cable。它在本地工作得很好,但在heroku上不工作。在heroku上,每当我发送任何消息时,它都会发送四条消息,两条重复消息和两条空白消息。should be added after the last require_* statement.// Read Sprockets README (https://github.com/ra
我试图让actioncable正常工作,但当我在rails控制台中发出ActionCable.server.broadcast“讨论”,{asdf: true}时,总是返回0。我已经在cable.yml中运行并配置了redis服务器。DiscussionChannel is transmitting the subscription confirmation
DiscussionChannel is
'subscribed' @perform("test")class ChatChannel < AC..Rails.logger.info "This is never printed in the logs"end[ActionCable] Openingrecorded connect 1494360634734
在服务器日志中</