{:uriI"Äfile:///Users/shanecav/Code/pendant/app/assets/javascripts/pendant/channels/pendant.js?type=application/javascript&pipeline=self&id=867a5b557e7f91088d5fa79236bc1e30b911bc2d4d9ea724cb2a11d0d2a5c694: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"Jconst CHANNEL = "PendantChannel"; const pendant_classes = document.getElementsByClassName('pendant'); console.log(pendant_classes); for(var i=0; i < pendant_classes.length; i++) { const pendant_class = pendant_classes[i]; console.log(pendant_class); document.addEventListener("DOMContentLoaded", function (_event) { App.pendant = App.pendant.subscriptions.create( { channel: CHANNEL, pendant_id: pendant_class.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"%æV1z- ÆkC&ßöûìFNÑíQDÐ}÷Œø5§: lengthiJ:dependencies_digest"%â'Ë‘ª1ðOX˜¬åEKµ´eKýh1‰†¸'Kí$ëà4:idI"E867a5b557e7f91088d5fa79236bc1e30b911bc2d4d9ea724cb2a11d0d2a5c694;F: mtimel+ØmñY