pause = function pause() {
                        _this2.readyState = "paused";
                        onPause();
                    }
Pauses polling.

@param {Function} onPause - callback upon buffers are flushed and transport is paused
@package