refactor: update WebSocket API routes for improved clarity and structure

This commit is contained in:
mlogclub
2026-04-25 10:50:23 +08:00
parent 270bb83fdb
commit 2c884c13cf
5 changed files with 46 additions and 60 deletions
+1 -1
View File
@@ -32,6 +32,6 @@ export function createImRealtimeConnection() {
? `&externalName=${encodeURIComponent(externalName)}`
: ""
return new WebSocket(
`${baseUrl}/api/open/im/ws?externalId=${externalId}&externalSource=${externalSource}&channelId=${channelId}${nameQuery}`
`${baseUrl}/api/ws/open?externalId=${externalId}&externalSource=${externalSource}&channelId=${channelId}${nameQuery}`
)
}