import {WebsocketManagerSettings} from './core/websockets/websocketManager'; import {MultichatHttpSettings} from './resources/baseHttp.resource'; export let MultichatCoreClientSettings: WebsocketManagerSettings & MultichatHttpSettings & { DEBUG: boolean; } = { BASE_URL: '', DEBUG: false, WSS: true, WS_DOMAIN: 'localhost', WS_PORT: '', WS_ENDPOINT: '/ws' }; export function mc_log(...args: any[]) { mc_log['history'] = mc_log['history'] || []; // store logs to an array for reference mc_log['history'].push(arguments); if (MultichatCoreClientSettings.DEBUG) { console.log(...args); } } if (typeof window !== 'undefined') { window['mc_log'] = mc_log; }