I'm in the process of improving the examples and recipes on the itty-sockets website and would love your input on any examples I might be missing or could enhance. Currently, I have a few examples like an ultra-simple viewer count, a connected users list, a basic chat, an advanced chat that uses join/leave events to build a user list, and a useful auto-responder for new connections. I'm thinking about adding other ideas like something cursor-based or a simulation for status streaming, such as a progress bar with notes. Feedback on the existing examples would also be appreciated; are they straightforward enough to follow? I focus on showcasing the itty-sockets code with comments on integrating personal code, but let me know if I could improve there too!
3 Answers
I just came across this project and I think it's really cool! One suggestion is to add a real-time polling feature where users can vote on options and see the results update instantly. It would showcase the real-time aspect in a practical way while diversifying from just chat examples!
That's a solid idea! Would it make sense to have predefined options and allow users to vote on them? Or maybe let them suggest options to vote on? Both ways are doable, but they do come with the limitation of not being persistent outside the session.
As for something fun for the homepage, how about creating a live demo similar to PartyKit's confetti effect, where confetti rains down wherever users click? It could be a fun demonstration of your real-time capabilities!
How about incorporating emoji reactions like some video apps do? This could add a fun, interactive element and would really demonstrate how real-time features can enhance user engagement!
Nice! I actually developed a demo of something similar, where users would hit an emoji and it would float up the screen from a random spot like in Zoom.
That's really interesting! I'm definitely going to check that out!

I noticed those links for "open this page in another tab" are leading to a 404 error. Just wanted to give you a heads up on that!