title: websocket rails javascript not working
body: <p>I use websocket rails channel and trigger it from a sidekiq worker. the trigger get logged in the websocket-rails log correctly, like this, with a removed &lt; before StationSongs:</p>
  
  <blockquote>
    <p>I [2014-12-31 16:19:28.788] [Channel] [station10938] #StationSongs _id: 54a41400446562680e17c102, name: "Fedde &amp; Di-Rect Le Grand", title: "Dream Dance Vol.73 - 14 - Where We Belong", info: nil, week: 1, year: 2014, date: 2014-12-31 15:19:28 UTC, station_id: 10938></p>
  </blockquote>
  
  <p>It get triggered like this:</p>
  
  <pre><code>channel = "station" + station_id.to_s
  WebsocketRails[:"#{channel}"].trigger(:new, stationsong)
  </code></pre>
  
  <p>I then set subscribe for the channel station10938, the javascritp code looks like this:</p>
  
  <pre><code>var dispatcher = new WebSocketRails('localhost/websocket');
  var stationid = $('#songhistorylist').data("id"); // is 10938
  var stationname = 'station' + String(stationid);
  var channel = dispatcher.subscribe(stationname);
  console.log(channel);
  channel.bind('new', function (song) {
          console.log(song);
          console.log('a new song about ' + song.name + " - " + song.title + ' arrived!');
  });
  </code></pre>
  
  <p>This will only print out channel, not anything else, even if the channel comes up in the log all the time.</p>
  
  <p>What have I done wrong?</p>