clue on 2.x
Replace deprecated at() Mocks Update PHPUnit configuration sc… Merge pull request #183 from Si… (compare)
jsor on master
Update example 63 to support v1… Merge pull request #400 from pa… (compare)
jsor on master
Fix some typos, a mixed up para… Merge pull request #399 from pa… (compare)
jsor on master
Use GitHub actions for continuo… Merge pull request #442 from cl… (compare)
jsor on master
Run tests on PHPUnit 9 Update PHPUnit configuration sc… Merge pull request #37 from Sim… (compare)
@clue I figure it out myself, it was an issue on my side, and I'm on Linux :)
@edhelas Happy to hear! Guess it means I'm too slow with catching up with the chat here :)
Hi @clue. I finally managed to do what I wanted (ReactPHP interacting with a formatted screen in the browser). The basis of everything was your project https://github.com/clue/php-sse-react/blob/master/examples/11-chat.php.
When you referred it, you commented it was "(bit dated, but nonetheless working)". In what sense did you make this comment? The example was perfect for me (simple).
@carliedu Happy to hear you've got this working! 👍
The __toString method you comment on Readme: Message:
This is the object received from a WebSocket server. It has a __toString method which is how most times you will want to access the data received. If you need to do binary messaging you will most likely need to use methods on the object.
react/http
to create an API you need something to start your service when the server it runs on restarts, and also restrts it when it for whatever reasons crashes. nginx or apache in this instance would only reverse HTTP proxies, and you need to adjust their configuration accordingly.
->enableKeepAlive()
. I've found that after increasing nginx's proxy_read_timeout
in ws location connection had stopped breaking. So it's definitely not ratchet issue, but nginx one.
->enableKeepAlive()
is an alternative way to bypass this problem, so this is why it helped.
@carliedu Could you provide your compose.json file in a gist please? I'll try to take a look at the composer conflicts you're having and see if we can either nail down some versions or correct some of the Ratchet librarie's files.
@iorsa @cboden This is not an issue in Pawl. I've updated https://github.com/clue/php-sse-react in the meantime, you can use the newest version which should be compatible with current Pawl 👍