Created
June 26, 2024 10:37
-
-
Save oney/c9bde2d8c72915450119e24163e1bd15 to your computer and use it in GitHub Desktop.
Use tRPC Server-sent Events in Expo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "react-native-url-polyfill/auto"; | |
import "@azure/core-asynciterator-polyfill"; | |
import { ReadableStream, TransformStream } from "web-streams-polyfill/ponyfill"; | |
import EventSource from "react-native-sse"; | |
globalThis.ReadableStream = ReadableStream; | |
globalThis.TransformStream = TransformStream; | |
globalThis.EventSource = EventSource; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment