Skip to content

gpsgate/react-native-eventsource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@gpsgate/react-native-eventsource

@gpsgate/react-native-eventsource

Installation

yarn add git+https://github.com/gpsgate/react-native-eventsource.git

Usage

import EventSource from "@gpsgate/react-native-eventsource";

const url = "https://domain/sse";
const eventSource = new EventSource(url);
eventSource.onopen = () => {
  console.debug("onopen");
};
eventSource.onmessage = message => {
  console.debug(message);
};
eventSource.onerror = err => {
  console.error(err);
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.3%
  • Objective-C 2.2%
  • Other 0.5%