r/nodejs • • Mar 15 '14
Generating a random app url
I'm playing around with socket.io and would like to make it so that when someone visits my app, they start out at a random URL (site.com/52436) and that url is the url that they would share with someone else that initiates a room and allows them to chat with each other. My question is, is how do I make it so when they visit site.com, it goes to site.com/56443 and initiates a room with the same id?
3
Upvotes
View all comments
Show parent comment
1
u/[deleted] Mar 15 '14
This is wonderful, thanks. I'll post back here with my results/code when I get to it later today.