DEV Community

Cover image for Build a real-time voting app with WebSockets, React & TypeScript 🔌⚡️

Build a real-time voting app with WebSockets, React & TypeScript 🔌⚡️

vincanger on June 25, 2024

TL;DR WebSockets allow your app to have “real time” features, where updates are instant because they’re passed on an open, two-way chann...
Collapse
 
monik2002 profile image
Monik

A very very nicely written blog . It would be also great if you could make a tutorial of it.

Collapse
 
vincanger profile image
vincanger

It is a tutorial :)

Do you mean a YouTube tutorial?

Collapse
 
ayush2390 profile image
Ayush Thakur

Very informative article

Collapse
 
vincanger profile image
vincanger

thanks!

Collapse
 
zvone187 profile image
zvone187

Very cool project

Collapse
 
vincanger profile image
vincanger

thank you, sir

Collapse
 
jakepage91 profile image
Jake Page

Great buzz off of this one. No pun intended

Collapse
 
vincanger profile image
vincanger

thanks, bro

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Great article! I love the comparison between the traditional, more complex method of development and using Wasp to save time.

Collapse
 
vincanger profile image
vincanger

thanks, glad you liked it

Collapse
 
enoch91 profile image
Enoch Osarenren

Hello everyone, I hope you're all doing well. I recently launched an open-source project called GraphQLPlaceholder, and I'd love your support. Please check it out and give it a star on GitHub github.com/enochval/graphql-placeh.... Your support would mean a lot to me and help immensely in the project's growth.

Thank you.

Collapse
 
andremantas profile image
AndrĂ© Mantas • Edited

I'm no JS/Node expert but wouldn't you need some kind of lock inside the socket.on('vote' ...) method? What happens if two users vote at the same time?

Collapse
 
matijasos profile image
Matija Sosic

Always love to see a good Chakra-based UI :D

Collapse
 
vincanger profile image
vincanger

it's tailwind!