diff --git a/README.md b/README.md index c8708af..9ed66c1 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ import RNEventSource from 'react-native-event-source'; class MyApp extends Component { componentDidMount() { - this.eventSource = new EventSource('https://sse.com/stream'); + this.eventSource = new RNEventSource('https://sse.com/stream'); // Grab all events with the type of 'message' this.eventSource.addEventListener('message', (data) => {