Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 772 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 772 Bytes

Socket Online Offline Demo

socket.io determine if a user is online or offline,
Stack Overflow Question - https://stackoverflow.com/questions/32134623/socket-io-determine-if-a-user-is-online-or-offline

Client Side Connection: Socket IO Client v3.x

Server Side Connection: Socket IO Server v3.x

Setup:

  1. Go to /server derectory and run
npm install
  1. Change the port if you want to change from 3000 to yours in port variable to /server/server.js

  2. Change host url with port in host variable to /client/index.js

  3. Go to /server derectory and run

npm start
  1. open /client/index.html file in your browser