Is it possible to broadcast using ActionCable from a background job using sidekiq? On development this works fine. In production my channels do not receive the broadcast. When I use Worker.new.perform(data), my channel receives the broadcast but not when I use Worker.perform_at or Worker.perform_async.
I think Worker.new.perform(data) works because it is called synchronously, but background jobs which have to be executed on the sidekiq worker do not because they are not executed by the rails main thread.
Why does it work in development and not in production?