Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Version 1.0.1

Compare
Choose a tag to compare
@jordanbyron jordanbyron released this 21 Feb 02:18
· 18 commits to master since this release

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!