Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+17 votes

So one phone is going to create a "key" for a particular node/branch of information in a real time database in Firebase. I want to share that key with only the phones in that game lobby. What would be the best way to create that game lobby so I can share that relevant information?

asked in CSC490_Spring2019 by (1 point)

1 Answer

+2 votes

I think Prof. Stonedahl and l came up with an answer so I wanted to share it.

I can create a node called "lobbies" and have the user generate a lobby name to push into it and make a branch. The other players can search for that lobby name and join it. From there I have the path in the database that I need to access all the relevant information of that game for the other users to access.

answered by (1 point)
...