V
V
Valeriu2017-10-20 23:09:01
Yii
Valeriu, 2017-10-20 23:09:01

What are the working solutions for working with websockets in PHP besides Ratchet?

Good evening everyone.
What are the packages for working with web sockets besides Ratchet?
If there is something under Yii2 it would be generally ideal.
Tried:

  1. https://github.com/yiicode/yii2-socketio - on the server it shows that it has started, redis listens to the right port, but when I try to open a connection, it does not work
  2. https://github.com/walkor/phpsocket.io - I have not tried this one yet, but I would like something more adapted to Yii2
  3. https://github.com/MKiselev/yii2-broadcasting - didn't work for me
  4. https://github.com/morozovsk/yii2-websocket - this one didn't work either (Yii debugger shows it has a bug)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene Wolf, 2017-10-20
@Wolfnsex

I don't know how friendly yii2 is with PHP standards... but if suddenly he has already made friends with composer , I highly recommend it from a couple of hundred options here . Among other things, I noticed that there is a separate section "yii2-extension", I think this is exactly what you were looking for.
PS

Yii debugger shows that it has an error
it is better to use the PHP debugger.

V
Valeriu, 2017-10-23
@vodniciarv

Decided to switch to NodeJS. And I advise everyone!

K
krypt3r, 2017-10-24
@krypt3r

Point 4 https://github.com/morozovsk/yii2-websocket has been working quite well for several months in conjunction with nginx.
I don’t know what the Yii debugger has to do with it if the WS server is a console application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question