Skip to content

Instantly share code, notes, and snippets.

Created April 4, 2013 13:40
What would you like to do?
Implementation of RFC 863 aka /dev/null as a service, using React.
require __DIR__.'/vendor/autoload.php';
$loop = React\EventLoop\Factory::create();
$socket = new React\Socket\Server($loop);
$socket->on('connection', function ($conn) {
$devNull = new React\Stream\WritableStream();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment