binaryminds / react-native-sse

Event Source implementation for React Native. Server-Sent Events (SSE) for iOS and Android 🚀
https://www.npmjs.com/package/react-native-sse
MIT License
175 stars 27 forks source link

Using params or options with ES6 #10

Closed charlesdsmith closed 4 months ago

charlesdsmith commented 2 years ago

Hey I really like this package, only problem is that I'm trying to send a parameter on connection to the server. I an do this if I include the params in the URL, however it doesn't work if I just include an options object as an arg with the EventSource function. You guys seem to be using typescript to do that. How can I achieve the same in NodeJS?

Thank you

wojciechkrol commented 8 months ago

Hey, what parameter you try to send?