Skip to content

Commit cd41d06

Browse files
committed
Update README.md
1 parent 2aa6ce0 commit cd41d06

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React Native EventSource (SSE) 🚀
1+
# React Native EventSource (Server-Sent Events) 🚀
22

33
Your missing EventSource implementation for React Native! React-Native-SSE library supports TypeScript.
44

@@ -20,6 +20,8 @@ npm install --save react-native-sse
2020

2121
## 🎉 Usage
2222

23+
We are using Server-Sent Events as a convenient way of establishing and handling Mercure connections. It helps us keep data always up-to-date, synchronize data between devices, and improve real-time workflow. Here you have some usage examples:
24+
2325
### Import
2426

2527
```js
@@ -58,7 +60,7 @@ If you want to use Bearer token and/or topics, look at this example (TypeScript)
5860

5961
```typescript
6062
import React, { useEffect, useState } from "react";
61-
import { View } from "react-native";
63+
import { View, Text } from "react-native";
6264
import EventSource, { EventSourceListener } from "react-native-sse";
6365
import "react-native-url-polyfill/auto"; // Use URL polyfill in React Native
6466

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-sse",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "EventSource implementation for React Native. Server-Sent Events (SSE) for iOS and Android.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)