DEV Community

Discussion on: Socket event listener fires multiple times in React component

Collapse
 
sainig profile image
Gaurav Saini

Nice article 👍
Just an FYI, when you’re not doing heavy real-time stuff like multi person chat rooms or something like that you can use Server Sent Events instead a dedicated library like socket.io.
It’s an inbuilt HTML 5 feature and very suitable for lightweight real time apps.
Here’s a little something to get you started - digitalocean.com/community/tutoria...

Collapse
 
tuenguyen2911_67 profile image
Tue

Thanks, I'll check it out