Skip to content

Instantly share code, notes, and snippets.

@richardDobron
Created July 13, 2022 16:50
Show Gist options
  • Save richardDobron/2ce44220c0205933122fc8e5df801f2a to your computer and use it in GitHub Desktop.
Save richardDobron/2ce44220c0205933122fc8e5df801f2a to your computer and use it in GitHub Desktop.
<?php
$response = new \dobron\BigPipe\AsyncResponse();
$response->reload(250); // reload page with 250ms delay
// or
$response->redirect('/onboarding', 500); // redirect with 500ms delay
$response->send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment