Skip to content

Instantly share code, notes, and snippets.

@richardDobron
Created July 13, 2022 16:48
Show Gist options
  • Save richardDobron/777a8d861baca5a0c96cd4e1a0463001 to your computer and use it in GitHub Desktop.
Save richardDobron/777a8d861baca5a0c96cd4e1a0463001 to your computer and use it in GitHub Desktop.
<?php
$asyncResponse = new \dobron\BigPipe\AsyncResponse();
// $asyncResponse->bigPipe()->require(["SecretModule", "run"], ... )
// is same as:
$asyncResponse->bigPipe()->require("require('SecretModule').run()", [
'first argument',
'second argument',
// ...
]);
$asyncResponse->send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment