dev-master
9999999-dev
MIT
The Requires
The Development Requires
by Matt Bonneau
by David Dan
0.0.1
0.0.1.0
MIT
The Requires
The Development Requires
by Matt Bonneau
by David Dan
Wallogit.com
2017 © Pedro Peláez
This library allows you use any async-interop loop with any library that requires the ReactPHP loop., (*1)
note: When all ReactPHP projects support the interop loop, this library will no longer be necessary., (*2)
//Create your async-interop loop
$loop = new \Voryx\React\AsyncInterop\Loop();
//Then use your ReactPHP loop like you normally would
$client = stream_socket_client('tcp://127.0.0.1:1337');
$conn = new React\Stream\Stream($client, $loop);
$conn->pipe(new React\Stream\Stream(STDOUT, $loop));
$conn->write("Hello World!\n");
$loop->run();
MIT
MIT