Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agent-tower/core
/ constructor
Method
constructor
packages/web/src/lib/socket/manager.ts:17–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
15
private visibilityHandler: (() => void) | null = null
16
17
constructor() {
18
// 开发环境使用相对路径,通过 Vite 代理;生产环境使用环境变量
19
this.baseUrl = getSocketBaseUrl()
20
}
21
22
/**
23
* 获取或创建统一 socket 连接
Callers
nothing calls this directly
Calls
1
getSocketBaseUrl
Function · 0.90
Tested by
no test coverage detected