Azure / Azure/fetch-event-source

Variable outside await fetchEventSource is undefined

Open
#77 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.9k
Forks
196
PR merge metrics
No merged PRs in 30d

Description

The code is working as expected
```ts
onmessage(ev) {
console.log(ev.data);
}
```

However, when using the `ev.data` , i can't access variable outside fetchEventSource. How to handle it ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.