setinterval & emitEvent for long-polling