                     %{ name: player.name, id: player.id }
                 end)
 
-    broadcast! socket, "all_players", players
-
-    {:noreply, socket}
+    {:reply, {:ok, %{ players: players }}, socket}
   end
 
   def handle_in("new_guess", %{"question_id" => question_id, "guess" => guess} = params, socket) do


    # Start the server and game
    BlueSky.QuestionsService.start_link(room_id)
  end

  def handle_in("new_room", %{"name" => name, "player_name" => player_name} = params, socket) do

    player = List.first(room.players)

    broadcast! socket, "room_added", %{ id: room.id, name: room.name }

    socket = assign(socket, :player_details, %{ player_id: player.id, room_id: room.id })

