The game and lip sync lobbies have a lot of repeated code between the JavaScript and the Elixir channels. It would be nice to create a single way to do this and then share it between different pages. The Phoenix channel naming scheme could help with routing the messages for example "lobby:rps" or "lobby:ttt" could act as the identifiers. Then a single Elixir module and one consuming JavaScript file could be used to facilitate all lobby chats instead of repeating code.
The game and lip sync lobbies have a lot of repeated code between the JavaScript and the Elixir channels. It would be nice to create a single way to do this and then share it between different pages. The Phoenix channel naming scheme could help with routing the messages for example "lobby:rps" or "lobby:ttt" could act as the identifiers. Then a single Elixir module and one consuming JavaScript file could be used to facilitate all lobby chats instead of repeating code.