correct a bug in the emulated web socket which double the poll requests
update compact version