Wireshark or any other monitoring software running on a single computer connected to a switch doesn't see all the traffic on a network, but only the traffic the switch sends to it, which includes broadcast traffic and traffic specifically addressed to the computer.
A switch routes traffic on osi layer 2, which means it keeps track of the mac addresses connected to each physical port. Traffic not intended for the connected device is not routed to it.