This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
Version 1.0.0
It's here! 1.0.0!!!! 🙌
This release includes a nice wrapper around interacting with event sources within your RN apps:
const eventSource = new RNEventSource('https://my-sse.com/stream');
eventSource.addEventListener('message', (event) => {
console.log(event.type); //=> message
console.log(event.data);
});
We've also moved from a pure Obj-C EventSource implementation to a Javascript implementation. This now allows this library to be used on Andriod RN apps. Hizza!