title: ActionCable Not Receiving Data
body: <p>I created the following using ActionCable but not able to receive any data that is being broadcasted.</p>
  
  <p><strong>Comments Channel</strong>:</p>
  
  <pre><code>class CommentsChannel &lt; ApplicationCable::Channel
    def subscribed
      comment = Comment.find(params[:id])
      stream_for comment
    end
  end
  </code></pre>
  
  <p><strong>JavaScript</strong>:</p>
  
  <pre><code>var cable = Cable.createConsumer('ws://localhost:3000/cable');
  
  var subscription = cable.subscriptions.create({
    channel: "CommentsChannel",
    id: 1
  },{
    received: function(data) {
      console.log("Received data")
    }
  });
  </code></pre>
  
  <p>It connects fine and I can see the following in the logs:</p>
  
  <pre><code>CommentsChannel is streaming from comments:Z2lkOi8vdHJhZGUtc2hvdy9FdmVudC8x
  </code></pre>
  
  <p>I then broadcast to that stream:</p>
  
  <pre><code>ActionCable.server.broadcast "comments:Z2lkOi8vdHJhZGUtc2hvdy9FdmVudC8x", { test: '123' }
  </code></pre>
  
  <p>The issue is that the <code>received</code> function is never called. Am I doing something wrong?</p>
  
  <p>Note: I'm using the <code>actioncable</code> npm package to connect from a BackboneJS application.</p>