"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./extension.js"),t=require("../../store/index.js");exports.webrtcCheck=function(n){var o=(new Date).getTime(),r=t.store.getState().webrtc,a=r.lastActivity,i=r.INACTIVE_DEADLINE_TIME,s=a?o-a:o;s>i&&e.isWebrtcTotallyFree()?(console.warn("[WEBRTC-CHECK] ⚠️ Janus inactive for "+Math.round(s/1e3)+" sec (> deadline: "+i/1e3+"): CALLING REGISTER CALLBACK"),n()):s>i&&!e.isWebrtcTotallyFree()?console.debug("[WEBRTC-CHECK] Janus is in conversation: no reactivation"):console.debug("[WEBRTC-CHECK] Janus last activity detected "+Math.round(s/1e3)+" sec ago (< deadline: "+i/1e3+"): no reactivation")};
//# sourceMappingURL=connection.js.map
