Restricting polling to websockets