{:uriI"¨file://app/assets/javascripts/push_routes_socket_io.js.erb?type=application/javascript&pipeline=self&id=46011baff90d381b2b9e900e56c671c5cf8ec2cd48fee8f9c3a7e9740f0d8d0d:ET:load_pathI"app/assets/javascripts;T: filenameI"8app/assets/javascripts/push_routes_socket_io.js.erb;T: nameI"push_routes_socket_io;T:logical_pathI""push_routes_socket_io.self.js;T:content_typeI"application/javascript;T: sourceI"var PushRoutes = { socket: null, init: function(server,user_id,auth_token,callback) { this.socket = io.connect(server, {secure: true}); socket.on('connect', function() { this.socket.connected = true; console.log("Connecting Socket"); socket.on('disconnect',function() { this.socket.connected = false; console.log('Socket Disconnected'); }); socket.on('unauthorized', function(err){ console.log("Authentication was rejected:", err.message); }); socket.on('authenticated', function() { console.log("Authentication successful"); }); socket.emit("authentication",{user_id: user_id, authentication_token: auth_token}, function(error,message) { console.log(error); console.log(message); }); }) }, subscriptions: {}, subscribe: function(route,on_update) { this.subscriptions[route] = on_update; register_subscription(route,on_update); }, register_subscription: function(route,on_update) { if(this.socket.connected) { socket.on(route,function(message) { on_update(message); }); socket.emit("subscribe",route); } }, unsubscribe: function(route) { delete this.subscriptions[route]; } } function push_test() { alert("here"); } ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"gprocessors:type=application/javascript&file_type=application/javascript&engines=.erb&pipeline=self;TTI"Ffile-digest://app/assets/javascripts/push_routes_socket_io.js.erb;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%–)Ðãàºä}&G.–pêB•6À&ÓhœM$k…s7¸: lengthi:dependencies_digest"%'ââ… !pÙ»V†¥!?h?S¿ˆ¥Qƒ^˶Þý-±n:idI"E46011baff90d381b2b9e900e56c671c5cf8ec2cd48fee8f9c3a7e9740f0d8d0d;F: mtimel+êÿV