/Blog-Socketio

Blogging using socket.io

Primary LanguageJavaScript

Blog-Socketio

Blog Post using Socket.io

Run on Online IDE: GitPod

Working Prototype (Demo): kartikpratilipi.herokuapp.com

Stack Used:

  • NodeJS for Backend
  • ExpressJS framework
  • ReactJS for Frontend
  • Socket.io for realtime data

Concept Working in Behind:

I've used Socket.io to count the number of current viewers and mapped every unique socket id (current viewer id) to blog id (id of currently viewing blog) in 'map' variable of type Map and every blog id have it's frequency (number current viewers of that particular blog) mapped in 'map2' variable of type Map.