Added option for polling http 200 instead of socket connection