Example application to explain how react streams work
Install dependencies:
composer install
Start server:
php telnet.php
In a different terminal:
telnet localhost 13378
Type in a hostname and press enter/return, it will resolve the hostname and display the result.