Sha256: a38e32965d43cf3099aafffe241a23b957f9044091e2a74b21bc7431a66bfe22
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
/* * @license * angular-socket-io v0.6.1 * (c) 2014 Brian Ford http://briantford.com * License: MIT */ angular.module("btford.socket-io",[]).provider("socketFactory",function(){"use strict";var n="socket:";this.$get=["$rootScope","$timeout",function(t,e){var r=function(n,t){return t?function(){var r=arguments;e(function(){t.apply(n,r)},0)}:angular.noop};return function(e){e=e||{};var o=e.ioSocket||io.connect(),u=void 0===e.prefix?n:e.prefix,i=e.scope||t,c=function(n,t){o.on(n,t.__ng=r(o,t))},a=function(n,t){o.once(n,t.__ng=r(o,t))},s={on:c,addListener:c,once:a,emit:function(n,t,e){var u=arguments.length-1,e=arguments[u];return"function"==typeof e&&(e=r(o,e),arguments[u]=e),o.emit.apply(o,arguments)},removeListener:function(n,t){return t&&t.__ng&&(arguments[1]=t.__ng),o.removeListener.apply(o,arguments)},removeAllListeners:function(){return o.removeAllListeners.apply(o,arguments)},disconnect:function(n){return o.disconnect(n)},forward:function(n,t){n instanceof Array==!1&&(n=[n]),t||(t=i),n.forEach(function(n){var e=u+n,i=r(o,function(){Array.prototype.unshift.call(arguments,e),t.$broadcast.apply(t,arguments)});t.$on("$destroy",function(){o.removeListener(n,i)}),o.on(n,i)})}};return s}}]});
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyneat_dashboard-0.4.1 | bower_components/angular-socket-io/socket.min.js |