consik/yii2-websocket

Send message just from server to client

Opened this issue · 1 comments

Hi, I just want to send message from server to client but in your example must send a message from client to server then server response to client with CommandsServer.

Imagine send a message from server to client every 1 minute without any request from client.

How can I do this ?

Please see attach image to understand my point.

1

You should have an open connection with client. Iterate through server->clients and client->send()