Name
do_push
Synopsis
do_push (params)
Implements a server push operation, which updates a page at specific intervals. Parameters are:
-delay =>nSpecifies the number of seconds,
n, to wait before the next call to the page-drawing subroutine.-last_page =>\&sublastRuns the subroutine
sublastto draw the last page update of a server push operation. The-last_pageroutine is invoked when the-next_pageroutine returns false. A reference to a subroutine glob should be provided for this parameter, but the name of the subroutine is also acceptable.-next_page =>\&subsubis the name of the subroutine responsible for redrawing the page and counting the number of iterations (if you want repeated updating). Thedo_pushroutine ends whensubreturns false (or when the-last_pagesubroutine is invoked). A reference to a subroutine glob should be provided for this parameter, but the name of the subroutine is also acceptable.-type =stringSpecifies the content type of the pushed data. The default value is
text/html.