Cathode — hydrogen gas. Two reductions are possible: Na+ (−2.71 V) or water (−0.83 V). Water has the higher reduction potential, so it is reduced instead of Na+:
2H2O(l)+2e−→H2(g)+2OH−(aq)
OH− ions collect, so the solution near the cathode becomes alkaline and the indicator turns blue/violet.
Anode — oxygen gas. Oxidation of SO42− to S2O82− needs far more energy (1.96 V) than oxidation of water (1.23 V), so water is oxidised:
2H2O(l)→O2(g)+4H+(aq)+4e−
H+ ions collect, so the solution near the anode becomes acidic and the indicator turns red.

Overall, only water is decomposed (2H2O→2H2+O2, twice the volume of H2 as O2); sodium sulphate simply makes the water conduct.