5

I want to create a TCP socket in React Native, connect to a telnet server with port of 23.

I found there has 'RCTWebSocket', but it seems only support http, https, ws, wss protocols, and always occurred error when remote response.

Is there a way to use TCP Socket which not only for http, ws protocols ?

1 Answer 1

1

You could try native objective c tcp socket with a js interface. Look for "extension " in the react native github page.

Sign up to request clarification or add additional context in comments.

2 Comments

here's one with iOS and Android support. github.com/PeelTechnologies/react-native-tcp
That one doesn't explain well how to use it. github.com/PeelTechnologies/react-native-tcp Also I can't seem to use it with Native-Navigation?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.