Преглед изворни кода

fix: buffer not return event show errors (#149)

tags/0.2.2
Joel пре 2 година
родитељ
комит
2d0d3365ed
No account linked to committer's email address
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      web/service/base.ts

+ 1
- 1
web/service/base.ts Прегледај датотеку

@@ -78,7 +78,7 @@ const handleStream = (response: any, onData: IOnData, onCompleted?: IOnCompleted
if (message.startsWith('data: ')) { // check if it starts with data:
// console.log(message);
bufferObj = JSON.parse(message.substring(6)) // remove data: and parse as json
if (bufferObj.status === 400) {
if (bufferObj.status === 400 || !bufferObj.event) {
onData('', false, {
conversationId: undefined,
messageId: '',

Loading…
Откажи
Сачувај