useEventSource
| Add autoClose
option (as in useWebSocket
)
#4587
Labels
useEventSource
| Add autoClose
option (as in useWebSocket
)
#4587
Clear and concise description of the problem
Provide an
autoClose
option that closes theEventSource
automatically on abeforeunload
window event trigger. Same thinguseWebSocket
provides:vueuse/packages/core/useWebSocket/index.ts
Lines 93 to 98 in 77c795d
vueuse/packages/core/useWebSocket/index.ts
Lines 318 to 322 in 77c795d
Suggested solution
Same implementation as in
useWebSocket
.Alternative
N/A
Additional context
https://vueuse.org/core/useEventSource/
https://vueuse.org/core/useWebSocket/
https://vueuse.org/core/useWebSocket/#autoclose
Validations
The text was updated successfully, but these errors were encountered: