UNPKG

@addapptables/ng-socket-io

Version:
2 lines 933 B
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("socket.io-client"),require("@angular/core")):"function"==typeof define&&define.amd?define("@addapptables/ng-socket-io",["exports","socket.io-client","@angular/core"],t):t(((e=e||self).addapptables=e.addapptables||{},e.addapptables["ng-socket-io"]={}),e["socket-io-client"],e.ng.core)}(this,function(e,t,n){"use strict";var o="default"in t?t.default:t,c=function(){function e(){}return e.prototype.connect=function(e,n){return new Promise(function(c,i){try{c((o||t)(e,n).connect())}catch(e){i(e.message)}})},e.prototype.bindEvent=function(e,t,n){e.on(t,n)},e.prototype.disconnect=function(e){return new Promise(function(t,n){try{e.disconnect(),t()}catch(e){n(e.message)}})},e.decorators=[{type:n.Injectable}],e}();e.SocketIoAdapter=c,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=addapptables-ng-socket-io.umd.min.js.map