Sha256: 52fbcdf2466c2e403b5b20aca6585e889c7a4d6dd40c6ca743b5ed5492bace50

Contents?: true

Size: 1.99 KB

Versions: 4

Compression:

Stored size: 1.99 KB

Contents

{:uriI"file:///Users/shanecav/Code/pendant/app/assets/javascripts/pendant/channels/pendant.js?type=application/javascript&pipeline=self&id=936b6f5e2aa576191c96e0bbe8076ea9d0d5e0303965b6ed28c5136d9d01f44c:ET:load_pathI"8/Users/shanecav/Code/pendant/app/assets/javascripts;T:
filenameI"T/Users/shanecav/Code/pendant/app/assets/javascripts/pendant/channels/pendant.js;T:	nameI"pendant/channels/pendant;T:logical_pathI"%pendant/channels/pendant.self.js;T:content_typeI"application/javascript;T:sourceI"const CHANNEL = "PendantChannel";

document.getElementsByClassName('pendant').forEach(function() {
  document.addEventListener("DOMContentLoaded", function (_event) {
    App.pendant = App.pendant.subscriptions.create(
      {
        channel: CHANNEL,
        pendant_id: this.dataset.pendantId
      },
      {
        connected: function () {
          // Called when the subscription is ready for use on the server
          console.log('Successfully connected to ' + CHANNEL);
        },

        disconnected: function () {
          // Called when the subscription has been terminated by the server
          console.log('Successfully disconnected from ' + CHANNEL);
        },

        received: function (data) {
          // Called when there's incoming data on the websocket for this channel
          console.log('Successfully received data from' + CHANNEL);
          console.log(data);
        }
      }
    );
  });
});
;T:
metadata{:dependencieso:Set:
@hash}
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"bfile-digest:///Users/shanecav/Code/pendant/app/assets/javascripts/pendant/channels/pendant.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%f!("~ltoN[[1C4":lengthi:dependencies_digest"%8؍A@0ln\R,8$Fy:idI"E936b6f5e2aa576191c96e0bbe8076ea9d0d5e0303965b6ed28c5136d9d01f44c;F:
mtimel+jY

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_job_channel-0.3.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/lC/lC82pc_u4RQcRxhkqGXifvGbOHZOlcWlG3iJE1PanEs.cache
active_job_channel-0.0.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/lC/lC82pc_u4RQcRxhkqGXifvGbOHZOlcWlG3iJE1PanEs.cache
active_job_channel-0.0.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/lC/lC82pc_u4RQcRxhkqGXifvGbOHZOlcWlG3iJE1PanEs.cache
active_job_channel-0.0.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/lC/lC82pc_u4RQcRxhkqGXifvGbOHZOlcWlG3iJE1PanEs.cache