make websockets work in counter example