Throughout election night, the mood shifted dramatically at watch parties hosted by Democratic and Republican groups.