-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send message to specific connected user or to all connected users #101
Comments
Hi, In echoserver example file "testwebsock.php"
|
@oguls Thank you very much!!! |
How can i send to specific user connected to socket? |
Your all connected users are in this object/array $user, try to print_all to check how this array structure looks like. To send to specific user you need to know the id of user like $user[id] then |
@oguls thank you very much. Thank you very much!!! |
I know that is not an issue and I'm sorry but I don't know where to write.
All works great, but I don't understand how is possible to send a specific message to a desired user or to all connected users. Is it possible to have few examples about that??
Thank you so much!
The text was updated successfully, but these errors were encountered: