{"repo":"Rapsssito/react-native-tcp-socket","free":true,"listed":false,"github":"https://github.com/Rapsssito/react-native-tcp-socket","clone":"git clone https://github.com/Rapsssito/react-native-tcp-socket.git","description":"React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.","language":"Java","stars":393,"topics":["react-native","net","network","tcp-socket","tcp","tcp-server","tcp-client","ios","android","react-native-library"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-tcp-socket React Native TCP socket API for Android, iOS & macOS with SSL/TLS support . It allows you to create TCP client and server sockets, imitating Node's net and Node's tls API functionalities (check the available API for more information). Table of Contents - Getting started - Overriding net - Overriding tls - Using React Native \\ = 0.60 - Self-Signed SSL (only available for React Native \\ 0.60) - Using React Native \\ = 0.60 Linking the package manually is not required anymore with [Autolinking. - iOS Platform: $ cd ios && pod install && cd .. # CocoaPods on iOS needs this extra step - Android Platform: Modify your android/build.gradle configuration to match minSdkVersion = 21 : Self-Signed SSL (only available for React Native 0.60) In order to generate the required files (keys and certificates) for self-signed SSL, you can use the following command: Note: The server-keystore.p12 must not have a password. You will need a metro.config.js file in order to use a self-signed SSL certificate. You should already have this file in your root project directory, but if you don't, create it. Inside a module.exports object, create a key called resolver with another object called assetExts . The value of assetExts should be an array of the resource file extensions you want to support. If you want to be able to use .pem and .p12 files (plus all the already supported files), your metro.config.js should look like this: Using React Native Manually link the library on iOS 1.","default_branch":null,"files":null,"tree":[],"storefront":"/r/Rapsssito","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Rapsssito/react-native-tcp-socket/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}