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
- Go to
/server
derectory and run
npm install
-
Change the port if you want to change from 3000 to yours in
port
variable to/server/server.js
-
Change host url with port in
host
variable to/client/index.js
-
Go to
/server
derectory and run
npm start
- open
/client/index.html
file in your browser