-
Notifications
You must be signed in to change notification settings - Fork 111
send message from server to specific user #14
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
Comments
Each web socket connection is for specific user. And your server has these handles. You could set up a queue based on say REMOTE_ADDR etc. But I would use something that is unique to user. More than one user can share the same IP behind the NAT. |
Thanks for reply. |
@ovoshlook, of course, you may grap it from a normal nginx variable |
使用ngx.semaphore可以完成对应功能 |
Hi is websocket have any way to send message from server to specific user
Like ws:send_text("some text",receiver_ip)?
The text was updated successfully, but these errors were encountered: