React Native Event Source
Base On: https://github.com/eohland/EventSource
install for node,react-native:
npm install event-source-any-where --save
install for HTML:
<script src="https://github.com/Shinichi52/EventSource/blob/master/eventsource.min.js"></script>
Using On React Navtive, NodeJS (not require in html5)
require('event-source-any-where'); // for overwrite EventSource
Using EventSource
let _consumer = YourUrl; // add event _consumer; // remove event _consumer; // close connection _consumer;
Example:
; this_consumer = CONFIGurlAuth + CONFIGserviceConsumer; this_consumer; this_consumer;