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
Websocket works incorrectly #487
Comments
Thanks for open this issue! I'll check it out |
Three months have passed. And the bug was not fixed |
Hi @Arkanius , What is your expected result? Can't understand your question yet. Websocket::on('example', function ($websocket, $data) {
$websocket->toUserId([1])->emit('notification', 'only for you message id: 1');
});
|
Hi @albertcht! I think he's saying that the "emit" is always sending the message to the user with id 1 and 2 when it should send just to the user with id 1 |
yes, if user with id |
@AkioSarkiz What about the other users? I mean, if you have user 3. This user will get the message as well? |
@Arkanius no, only current (frist) + second |
it's my route
User with login=admin & id=2, sent example emit and his got notification for user by id 1.
User with login=user & id=1, too his got too this message.
Notice: When i emit from user 1, user 2 don't receiveding message.
P.S.
from docs
The text was updated successfully, but these errors were encountered: