Aqaba is the only seaside town in the Hashemite Kingdom.
My suggestion
If you want to swim, it's better to avoid the beaches in the center of town which are quite dirty. It's better to take a car or a taxi to go to one of the numerous well-developed beaches south of the town.