Use TCP socket in React Native?

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

I found that there is "RCTWebSocket" but it only seems to support HTTP, https, ws, wss protocols and it always got a remote response error.

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

+3


source to share


1 answer


You can try your own object c tcp socket with js interface. Look for the "extension" on the corresponding gitub page.



+1


source







All Articles