I’ve got the basic chatroom working (single page), but I’d like to generate a unique one when I browse to my URL. E.g. User browses to chatroom.com and is redirected to chatrooom.com/room1, then s/he can share that url with friends to chat with. How do I go about doing this?
Share
You need a router, you could use backbone or my personal favorite meteor router (installed via meteorite):
in your client js
And for your router (also in the client js):
});
So if you were to load
/rooms/lobbyit would load only the messages with theroomvalue aslobby.More docs on meteor router here : https://github.com/tmeasday/meteor-router