Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

How can i initialize server as client just one time in react native?

$
0
0
render(){    const { wifi } = this.state;    /*const client = TcpSocket.createConnection({        port: 80,        host: '192.168.4.100',        tls: false,        interface: 'wifi',        //localAddress: '192.168.4.101',    }, () => {        client.write('APPSETTING CONNECTED');    });*/

I put this code in render, so it results to multi connection by same IP.How can i initialize this server as client just one time in react native?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>