     player = List.first(room.players)
 
     broadcast! socket, "room_added", %{ id: room.id, name: room.name }
-    {:noreply, socket}
 
     socket = assign(socket, :player_details, %{ player_id: player.id, room_id: room.id })
 

                    %{ name: player.name, id: player.id }
                end)

    broadcast! socket, "all_players", players

    {:noreply, socket}
  end

  def handle_in("new_guess", %{"question_id" => question_id, "guess" => guess} = params, socket) do

    #How do I do custom encoders?
    #http://www.cultivatehq.com/posts/serialisation-of-ecto-models-in-phoenix-channels-and-views/

    {:reply, {:ok, %{ rooms: rooms }}, socket}
  end

