how to known the message transfer complete or the connect close? I have tried this way seems did not work:
eventSource.addEventListener('complete', () => {
console.log('Transfer of data is complete');
});
eventSource.addEventListener('onclose', () => {
console.log('connection is closed');
});
how to known the message transfer complete or the connect close? I have tried this way seems did not work: