chat接口使用sse
This commit is contained in:
parent
66c345e788
commit
a6312198c3
|
|
@ -635,9 +635,6 @@ const sendMessageWithFileUseSSE = async () => {
|
|||
},
|
||||
body: JSON.stringify(end_msg), // 序列化请求体
|
||||
openWhenHidden: true, // 允许页面隐藏时保持连接
|
||||
onopen: () => {
|
||||
console.log('SSE connection established');
|
||||
},
|
||||
onmessage: (event) => {
|
||||
try {
|
||||
doReceiveMessageSSE(event);
|
||||
|
|
|
|||
Loading…
Reference in New Issue