Call specific client from SignalR

前端 未结 5 1165
孤独总比滥情好
孤独总比滥情好 2020-11-30 22:07

I want to call specific client from server, and not broadcast to all of them. Problem is that I\'m in scope of some AJAX request (in .aspx codebehind let say), and not in Hu

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 22:55

    If the specific user actually is the caller it self, you can use:

    Clients.Caller.myJavaScriptClientFunction();
    

提交回复
热议问题