“When an electric current flows through the system, the salty water divides into regions where the salt concentration is either depleted or enriched. When that current is increased to a certain point, it generates a shockwave between these two zones, sharply dividing the streams and allowing the fresh and salty regions to be separated by a simple physical barrier at the centre of the flow.”
via Scientists have figured out how to shock the salt out of seawater – ScienceAlert.