Skip to content

Instantly share code, notes, and snippets.

@richardDobron
Created July 13, 2022 16:49
Show Gist options
  • Save richardDobron/65948a6a369e3615ce40071f7eec3444 to your computer and use it in GitHub Desktop.
Save richardDobron/65948a6a369e3615ce40071f7eec3444 to your computer and use it in GitHub Desktop.
<?php
$response = new \dobron\BigPipe\AsyncResponse();
$response->setPayload([
'username' => $_POST['username'],
'status' => 'unavailable',
'message' => 'Username is unavailable.',
]);
$response->send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment