Use socket.io with react native — Nov 2017

npm install --save socket.io-client
import SocketIOClient from ‘socket.io-client'
this.socket = SocketIOClient('http://localhost:80000');
npm install --save socket.io

--

--

--

Frontend Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abdul Haseeb

Abdul Haseeb

Frontend Engineer

More from Medium

Google Map Integration Into React- Native Project on Android

Develop and Automate React Native Android APK Build with Expo, EAS, and Gitlab CI/CD

Use Virtual Backgrounds with the Agora React Native SDK

SINGLE APP FOR WEB, IOS, AND ANDROID USING REACT-NATIVE ( Components ) — PART 2