TCP Connection in Expo

Hello Everyone!

For the app that I am currently working on, I need to make it send accelerometer and geolocation data to a Java server that I have written.

I am fairly new to Expo and React Native and I’ve looked up various sources online, but I have found nothing so far that has worked and everything related to it has mostly confused me so far.

Can anyone offer tips on how to set up a TCP connection in an Expo app or link to any useful sources on how to go about it?

Thanks!

1 Like

Hey @ljeasson

We have had feature requests for this before, but unfortunately we haven’t had the chance to prioritize it over our other needs.

Feature Request: Support raw TCP sockets | Voters | Expo
GitHub Issues: https://github.com/expo/expo/issues/218

I’m sorry I don’t have a better answer, but you could try detaching and using this library: https://github.com/PeelTechnologies/react-native-tcp but I haven’t tried it myself.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.