@kontikijs/socket
Version:
A server socket and client for Kontiki JS.
15 lines (14 loc) • 5.72 kB
JavaScript
import t from"fs";import n from"path";import{Server as r}from"socket.io";const s=["1bsREfD","1069PmXUvP","svelte","149537OpGbBq","2783QkhrkC","1cwXmeQ","resolve","1koWhfu","dependencies","includes","parse","135583xNrfSq","assign","toString","keys","react","579499CdstFQ","vue","readFileSync","283fulQcK","542040enkBnr","1151aaZwdI","431285chbIRL","length"];function e(t,n){return(e=function(t,n){return s[t-=497]})(t,n)}const a=e;!function(t,n){const r=e;for(;;)try{if(750304===-parseInt(r(510))-parseInt(r(512))+parseInt(r(511))*parseInt(r(515))+-parseInt(r(506))*parseInt(r(519))+parseInt(r(501))*parseInt(r(497))+parseInt(r(509))*parseInt(r(518))+-parseInt(r(517))*-parseInt(r(514)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(s);const p=JSON[a(500)](t[a(508)](n[a(520)](process.cwd()+"/package.json"),"utf-8")[a(503)]()),o={};const c=["83RNRYxc","219353kOmNHj","529DJkVQK","5eVFOlO","302jBgbTl","1089349KziEJn","939707UlQYWC","1406961GRRsJu","10547EQZngw","78tgWmsR","4965htEdUT"];function i(t,n){return(i=function(t,n){return c[t-=122]})(t,n)}!function(t,n){const r=i;for(;;)try{if(931655===parseInt(r(132))+-parseInt(r(130))+-parseInt(r(127))*parseInt(r(129))+parseInt(r(125))*-parseInt(r(122))+parseInt(r(123))*-parseInt(r(124))+parseInt(r(131))+parseInt(r(128))*parseInt(r(126)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(c);const I=["2ZxZKNQ","453163dVrdmI","httpServer","53SPbgWs","452022tuvgiT","1FptAAF","2129bpcugd","174333umDYRr","264729SmroaZ","103029vxIRRO","3vgMLtc","189509LWMJLp","script"];function f(t,n){return(f=function(t,n){return I[t-=201]})(t,n)}!function(t,n){const r=f;for(;;)try{if(239521===-parseInt(r(213))*parseInt(r(212))+parseInt(r(207))+-parseInt(r(211))+-parseInt(r(203))*parseInt(r(201))+parseInt(r(206))*parseInt(r(209))+parseInt(r(204))*parseInt(r(208))+parseInt(r(210)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(I);var u=(t,n)=>{const s=f;if(n){const e=n.middleware,a=n.options,p=n[s(202)]||{},o=e?a:t[s(205)];!n||((t,n,s)=>{const e=new r(t,n);s&&s(e)})(o,a,p)}};const h=["1zFoYJH",'<script src="https://cdn.socket.io/4.1.2/socket.io.min.js"><\/script>',"907111QEfaaN","1ZYbBOG","replace","<head> \n ","97999SqBeRT","201735cPYRFr","269975pPFaEm","92hoGjGz","16708DyOifo","<head>","1738846uoETCV","1669838ixYMuV"];function l(t,n){return(l=function(t,n){return h[t-=242]})(t,n)}!function(t,n){const r=l;for(;;)try{if(934728===-parseInt(r(254))*parseInt(r(252))-parseInt(r(244))+parseInt(r(245))+parseInt(r(246))+-parseInt(r(248))*-parseInt(r(247))+parseInt(r(255))*parseInt(r(251))+-parseInt(r(250)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(h);const d=["length","push","11TjGvHQ","5LhUwib","mixin","960437HbWQwI","485140kRGYnG","config","$io","install","3654EHVbfH","assign","1437993wtcqnN","258337pJjNJH","121nBZdBv","socket","globalProperties","958760bAndus","115337CwhQfP"],b=k;function k(t,n){return(k=function(t,n){return d[t-=229]})(t,n)}!function(t,n){const r=k;for(;;)try{if(839804===-parseInt(r(235))*parseInt(r(245))+parseInt(r(234))*-parseInt(r(231))+parseInt(r(230))+parseInt(r(246))*-parseInt(r(242))+parseInt(r(238))+parseInt(r(237))+parseInt(r(244)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(d);class m{[b(241)](t,n){const r=b;if(t[r(236)]({created(){}}),n&&n[r(247)]){const s={},e=[];if(Array.isArray(n[r(247)])){let t=0;for(;t<n[r(247)][r(232)];){const s=n[r(247)][t];e[r(233)](this.io(s.options)),t++}}else Object[r(243)](s,this.io(n[r(247)].options));e[r(232)]>0?t[r(239)][r(229)][r(240)]=e:t[r(239)].globalProperties[r(240)]=s}t.config.globalProperties[r(240)]=this.io(n)}}const g=["2371TvhcoL","337711tLIYuG","length","1YyaLcR","replace","6isQWLa","1nrGZkP","name","5334iHckbE","3XJcytm","1cnyihP","vue","183281FEYIPL","145105HxhJdu","89MdrRzf","56187VxUkzJ","343770iccQej","install","1UBqOPz"],v=y;!function(t,n){const r=y;for(;;)try{if(178377===parseInt(r(118))*-parseInt(r(120))+-parseInt(r(124))*parseInt(r(108))+-parseInt(r(112))*parseInt(r(122))+-parseInt(r(113))*parseInt(r(106))+-parseInt(r(110))*-parseInt(r(115))+parseInt(r(119))*-parseInt(r(114))+-parseInt(r(109))*-parseInt(r(116)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(g);const R=new m;function y(t,n){return(y=function(t,n){return g[t-=106]})(t,n)}const P=[{name:v(111),install:R.install.toString()[v(123)](/this./g,"")}];
/**
* @title Kontiki JS / Socket
* @description Sockets for Kontiki JS.
*
* @author Daniel K. Hendricks
* @license MIT (Please read the attached license in root)
* @copyright (c) 2021-present, Daniel K. Hendricks
*
* @see https://kontikijs.org
* @support https://kontikijs.com
*/
const O=["1139707GpBRGh","1364220VwGczW","745216UicZCJ","1212941Sseieh","37583dHbFKO","34YYVfEl","1416817rPdLNl","19247PWtJZu","export default {","kontiki:socket"];function Q(t,n){return(Q=function(t,n){return O[t-=331]})(t,n)}!function(t,n){const r=Q;for(;;)try{if(811986===-parseInt(r(336))+parseInt(r(340))+parseInt(r(337))+parseInt(r(339))*-parseInt(r(338))+-parseInt(r(331))+-parseInt(r(334))+parseInt(r(335)))break;t.push(t.shift())}catch(n){t.push(t.shift())}}(O);const G=(t=>{const n=v;if(t){let r=0;for(;r<P[n(121)];){if(P[r][n(107)]===t[n(107)])return P[r][n(117)];++r}}})((()=>{const t=a,n=[t(507),t(505),t(516)];let r=0,s=0;const e=Object[t(504)](p[t(498)]);for(;r<n[t(513)];){for(;s<e[t(513)];)n[t(499)](e[s])&&(Object[t(502)](o,{name:e[s]}),Object[t(502)](o,{version:p.dependencies[e[s]]})),s++;r++}return o})()),J=t=>{const n=Q;return{name:n(333),configureServer:n=>u(n,t),transformIndexHtml:t=>(t=>{const n=l,r=n(253);return t[n(242)](n(249),n(243)+r)})(t),resolveId(t){if("@io"===t)return"@io"},load(t){if("@io"===t)return n(332)+G+"}"}}};export{J as socket};
//# sourceMappingURL=index.min.js.map