Try websocket a few times before switching to polling.