This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
Version 1.0.1
Adds an optional argument to RNEventSource
for passing headers along to EventSource
. Handy for authorization.
const options = { headers: { Authorization: 'Baerer ...' } };
const eventSource = new RNEventSource('https://my-sse.com/stream', options);
Thanks to @dflourusso for the pull request!