I have learnt that in an electrochemical cell, the osmotic pressure in the solution hinders the flow of ions from the electrode to the solution, rather some ions may accumulate on the electrode because of this osmotic pressure. As far as I know, osmotic pressure is a measurement of the tendency of the solvent molecule to flow from one solution to another.
My question is, how does this pressure cause the ions in the solution to gather at the electode?