Skip to content

Commit

Permalink
Update EventSource.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yusinto committed Nov 27, 2023
1 parent cb4ed6e commit c85e0b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/**
* Ripped from https://github.com/binaryminds/react-native-sse
* These changes are made from the above repo at fork-time:
* 1. converted to ts and fix ts related errors.
* 2. added onopen, onclose, onerror, onretrying functions.
* 3. modified dispatch to work with functions added in 2.
* 4. replaced all for of loops with foreach
*/
import type { EventSourceEvent, EventSourceListener, EventSourceOptions, EventType } from './types';

Expand Down

0 comments on commit c85e0b5

Please sign in to comment.