Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Revert "feat: send token to services ws (#335)" (#386)
gbirmandd41eefff8c3
diff --git a/js/app/packages/service-storage/websocket.ts b/js/app/packages/service-storage/websocket.tsindex 4d07c922e2..c43a15e571 100644--- a/js/app/packages/service-storage/websocket.ts+++ b/js/app/packages/service-storage/websocket.ts@@ -1,8 +1,6 @@import { SERVER_HOSTS } from '@core/constant/servers';-import { getMacroApiToken } from '@service-auth/fetch';import {ConstantBackoff,- type UrlResolver,type Websocket,WebsocketBuilder,WebsocketEvent,@@ -22,13 +20,7 @@ const HEARTBEAT_INTERVAL = 300000;*/const HEARTBEAT_TIMEOUT = 5000;-const getUrl: UrlResolver = async () => {- const token = await getMacroApiToken();- const baseUrl = SERVER_HOSTS['websocket-service'];- return `${baseUrl}?token=${token}`;-};--export const ws = new WebsocketBuilder(getUrl)+export const ws = new WebsocketBuilder(SERVER_HOSTS['websocket-service']).withBackoff(new ConstantBackoff(1500)).withHeartbeat({pingMessage: JSON.stringify({ action: 'wsping' }),