SylvanSign / pirates

☠️
1 stars 1 forks source link

Use unique Phoenix channel topics for each instance #48

Open SylvanSign opened 7 years ago

SylvanSign commented 7 years ago

Maybe generate a unique id for each game instance (like we do for each client), and then have clients join the instance specific topic on connection

something like room:<instance_id>

With this, we could use broadcast to send state to all clients on a single instance, plus more easily allow local chat and other features like custom rooms and whatnot