add polling

in the future we'll poll at the serverside and throw events on the socket