A
A
Alexander2016-08-10 11:18:27
Yii
Alexander, 2016-08-10 11:18:27

How to start a child process in Ratchet?

Good day to all.
Please help me deal with sockets / processes, I can’t figure it out for two days already.
Task:
-Ability to make bids for users
-Send all users fresh data about products
-Monitor all products on the server side, if necessary, do something ...
In general, I'm doing an auction on Yii2. Fastened Ratchet - PHP WebSockets, figured it out more or less. If the user makes a bet, everything is sent to everyone, updated, everything works in general as it should.
That's actually the question: How to launch a third-party process from Ratchet (i.e. so that some process is constantly looped and, if necessary, does something and sends fresh data), or how to send all users to Ratchet from a third-party daemon / script, which would also launch Ratchet on startup?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OVK2015, 2016-08-10
@bakha101

Those. two php scripts weigh in parallel. One is Rachet himself. Second handler of something with ws client capability?
https://github.com/psinetron/PHP_SocketIO_Client
ws client for second script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question