Getting Action Cable to broadcast in Sidekiq Job : <p>I'm using Rails 5 in a docker environment and I can get Action Cable to broadcast on a Sidekiq worker perfectly fine, using worker.new.perform. </p>

<p>But for the life of me, I cannot get it to broadcast while using worker.perform_async.</p>

<p>Here is my cable.yml:</p>

<pre><code>default: &amp;default
 adapter: redis
 url: &lt;%= ENV['REDIS_PROVIDER'] %&gt;

development:
 &lt;&lt;: *default

test:
  &lt;&lt;: *default

production:
  &lt;&lt;: *default
</code></pre>

<p>Here is my worker:</p>

<pre><code>class AdminWorker
  include Sidekiq::Worker

  def perform
    ActionCable.server.broadcast 'admin_channel', content: 'hello'
  end
 end
</code></pre>

<p>My Admin Channel:</p>

<pre><code>class AdminChannel &lt; ApplicationCable::Channel
 def subscribed
  stream_from "admin_channel"
 end

 def unsubscribed
  # Any cleanup needed when channel is unsubscribed
 end
end
</code></pre>

<p>As I mentioned earlier, this works just fine when calling AdminWorker.new.perform.  As soon as I try to run AdminWorker.perform_async, the cable will not broadcast and nothing helpful regarding action cable in the logs.  What am I missing here?</p>
