Think about what you were doing. You were putting an electric current through a solution of ions. What you did was what is known as electrolysis. The effervescence was the formation of hydrogen and oxygen resulting from the breakdown of H2O by the electric current.