plugins/realtime/realtime.js
function registerBoxViewPageEventHandlers() {
        // event names depend on whether we support svg or not
        if (scope.getUtility('support').svg) {
            realtime.on('pageavailable.svg', handlePageAvailableEvent);
            realtime.on('finished.svg', handleFinishedEvent);
            realtime.on('failed.svg', handleFailedEvent);
        } else {
            realtime.on('pageavailable.png', handlePageAvailableEvent);
            realtime.on('finished.png', handleFinishedEvent);
            realtime.on('failed.png', handleFailedEvent);
        }

        realtime.on('error', handleErrorEvent);
    }
function registerBoxViewPageEventHandlers() {
        // event names depend on whether we support svg or not
        if (scope.getUtility('support').svg) {
            realtime.on('pageavailable.svg', handlePageAvailableEvent);
            realtime.on('finished.svg', handleFinishedEvent);
            realtime.on('failed.svg', handleFailedEvent);
        } else {
            realtime.on('pageavailable.png', handlePageAvailableEvent);
            realtime.on('finished.png', handleFinishedEvent);
            realtime.on('failed.png', handleFailedEvent);
        }

        realtime.on('error', handleErrorEvent);
    }
function registerBoxViewPageEventHandlers ( ) { // event names depend on whether we support svg or not if ( scope . getUtility ( 'support' ) . svg ) { realtime . on ( 'pageavailable.svg' , handlePageAvailableEvent ) ; realtime . on ( 'finished.svg' , handleFinishedEvent ) ; realtime . on ( 'failed.svg' , handleFailedEvent ) ; } else { realtime . on ( 'pageavailable.png' , handlePageAvailableEvent ) ; realtime . on ( 'finished.png' , handleFinishedEvent ) ; realtime . on ( 'failed.png' , handleFailedEvent ) ; } realtime . on ( 'error' , handleErrorEvent ) ; }
Registers event handlers for page streaming specific realtime events
@returns {void}
@private
Registers event handlers for page streaming specific realtime events