{:uriI"Äfile:///Users/shanecav/Code/pendant/app/assets/javascripts/pendant/channels/pendant.js?type=application/javascript&pipeline=self&id=ac89a593a97682148f561d84017ca74819d721bbcc85cb37f1bd6873e2bc0089: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"¥document.addEventListener("DOMContentLoaded", function (_event) { const CHANNEL = "::PendantChannel"; const pendant_classes = document.getElementsByClassName('pendant'); for (var i = 0; i < pendant_classes.length; i++) { console.log('Subscribing to ' + CHANNEL); App.pendant = App.pendant_cable.subscriptions.create( { channel: CHANNEL }, { 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); var newdiv = document.createElement("DIV"); newdiv.appendChild(document.createTextNode(data.job_name + ' is complete')); document.body.appendChild(newdiv); } } ); } }); ;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"%0¶À3²¿@‹o€ñu;¢nÖtî«Å=¤EL©/'?F: lengthi¥:dependencies_digest"%@ìL`r¸yysD„is£¾–hÝ:öß‚A$cÜó:idI"Eac89a593a97682148f561d84017ca74819d721bbcc85cb37f1bd6873e2bc0089;F: mtimel+ò÷Y