API版本化:迁移聊天与账号任务入口
This commit is contained in:
1 parent
42e37f7898
commit
d3648e9985
11 files changed
+166
-25
No files matched your search
@@ -212,7 +212,7 @@ const Chat: React.FC = () => {
|
||||
if (disposed) return;
|
||||
setLiveState('connecting');
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||
socket = new WebSocket(`${protocol}//${window.location.host}/api/chat/ws`);
|
||||
socket = new WebSocket(`${protocol}//${window.location.host}/api/v1/chat/ws`);
|
||||
socket.onopen = () => { retry = 0; setLiveState('online'); };
|
||||
socket.onmessage = event => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user