Omegle clone saving socket ids

Hi everyone. I’m currently trying to make an Omegle Clone using NodeJS and React. For this, it’s important that random people are being matched with each other. I’m doing this by just randomly selecting two socket ids and have them communicate with each other automatically to eventually establish a video connection (through WebRTC) One thing I was originally doing was having an array in my server.js to store all socket ids. However, if I were to deploy this application, what would be the best way to implement saving these socket ids? I was thinking about using Redis, but I’m not sure what that would look like in this case.
1 Reply
Zan
Zan2y ago
That's how I would do it, with Redis
Want results from more Discord servers?
Add your server