skip to Main Content

ReactPHP HTTP Server Running Async

I was wondering if there is a way to have a ReactPHP HTTP Server handle requests Asynchronously. I set up a very basic HTTP Server using the documentation (https://github.com/reactphp/http) HTTPServer.php <?php $httpServer = new ReactHttpServer( function(PsrHttpMessageServerRequestInterface $request) { $responseData =…

VIEW QUESTION

React php connecting with a different port

I have two files opening a new socket and want them to connect to each other using React PHP. The following two files are the sockets: First file test1.php <?php include 'vendor/autoload.php'; $socket = new ReactSocketSocketServer('127.0.0.1:3030'); $socket->on('connection', function(ReactSocketConnectionInterface $connection) {…

VIEW QUESTION
Back To Top
Search