Pragmatics is the study of meaning in language in a particular context, meaning the place that the thing is said, who says it, or the things that have already beemn said. Also, pragmatics studies how people speak when both know something.
Pragmatics also studies how people speak not literally but indirectly and why even can still understand each other. It also studies how people can understand each other even if the words are ambiguous.
Pragmatic competence is the ability to understand what someone intends to say.