Sync latest web IM fixes

This commit is contained in:
annali168290-ux
2026-10-10 15:34:06 +07:00
parent 3377b6072a
commit a5efae932b
61 changed files with 22155 additions and 5229 deletions
+23
View File
@@ -0,0 +1,23 @@
(() => {
const protocol = window.location.protocol || 'http:';
const host = window.location.hostname || '18.141.44.165';
window.JC_WEB_IM_CONFIG = {
runtimeEnvironment: 'production',
adminServer: `${protocol}//${host}:8100`,
appServer: `${protocol}//${host}:8888`,
qrAppServer: `${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: 'legacy-http',
syncIntervalMs: 15000,
sseEnabled: true,
sseTicketApi: '/api/sse_ticket.php',
sseUrl: '/ws-events'
};
})();