(() => { const protocol = window.location.protocol || 'http:'; const host = window.location.hostname || '127.0.0.1'; window.JC_WEB_IM_CONFIG = { adminServer: `${protocol}//${host}:8100`, appServer: `${protocol}//${host}:8888`, platformConfigApi: '/api/platform_config.php', registerConfigApi: `${protocol}//${host}:8100/api/register-config`, registerPhoneExistsApi: `${protocol}//${host}:8100/api/register-phone-exists`, imServerHost: host, imRoutePort: 80, useWss: false, wsPath: '/ws', sdkMode: 'http', syncIntervalMs: 15000, sseEnabled: true, sseTicketApi: '/api/sse_ticket.php', sseUrl: '/ws-events' }; })();