Questions tagged [reactphp]

React is a low-level library for event-driven programming in PHP.

Event-driven, non-blocking I/O with PHP. http://reactphp.org/ React is a low-level library for event-driven programming in PHP. At its core is an event loop, on top of which it provides low-level utilities, such as: Streams abstraction, async dns resolver, network client/server, http client/server, interaction with processes. Third-party libraries can use these components to create async network clients/servers and more.

The event loop is based on the reactor pattern (hence the name) and strongly inspired by libraries such as EventMachine (Ruby), Twisted (Python) and Node.js (V8).

172 questions
0
votes
0 answers

Composer: lib (React PHP) only partially autoloading

One component in the React lib is auto-loading, but the majority are not. I Composed react/react into my project, and everything in that process went smoothly. Upon trying to use React\EventLoop\Factory or React\Stream\Stream, a "class not found"…
mOrloff
  • 2,547
  • 4
  • 29
  • 48
0
votes
1 answer

Setup react/zmq on windows

I am setting up Ratchet on my system following instructions from official site I have performed the following: Downloaded and installed zeromq from the official site Followed instructions of http://zeromq.org/bindings:php for PHP bindings and…
saurabh
  • 6,687
  • 7
  • 42
  • 63
-1
votes
1 answer

In ReactPHP, can I obtain the port number on the local side of the connection?

I'm running ReactPHP in a Docker environment to listen for WebSocket messages. I use the port mapping feature like so: docker run \ --detach \ -p 10002:8081 \ missive-controller Thus, the external port 10002 maps to 8081 inside the…
halfer
  • 19,824
  • 17
  • 99
  • 186
-1
votes
1 answer

Can a Ratchet/ReactPHP loop listen to more than one port?

I've set up ReactPHP as a WebSocket listener so I can send out near-realtime updates to subscribed browsers. It looks like this: use Ratchet\Server\IoServer; use Ratchet\Http\HttpServer; use Ratchet\WebSocket\WsServer; use MyApp\Listener; $rootPath…
halfer
  • 19,824
  • 17
  • 99
  • 186
-1
votes
1 answer

ReactPHP - Keep online on server like "pm2" with "NodeJS" - process manager

I have been studying "ReactPHP", but I did not understand how to keep it running on the server if there is an error. I searched and found that "NodeJS" has "pm2" for keep online on the server or if there is an error it restarts, I would like to know…
-2
votes
1 answer

Why client in google chrome can not connect to websocket with ssl

client can't connect to secure websocket with google chrome error: WebSocket connection to wss://web:port failed but can connect to secure websocket with firefox. I'm using reactphp and ratchet libraries
zarok13
  • 15
  • 5
-2
votes
1 answer

Azure WebApp custom PHP server

Is in Azure WebApp any possibility to run custom web server instead of IIS? (amphp/aerys or reactphp/http) I think, that with Node.js it is possible, so there should be some way for PHP. Expected behavior is, that I will use my custom PHP server,…
1 2 3
11
12