我想发送一条消息给一个SignalR客户端,但它不应该广播给所有人,我经历了许多关于clientId和组的文章,但没有直接的例子或给出的观点。我的客户端代码如下:客户端特定的消息由信号R
proxy: null,
//Getting the connection object
connection = .hubConnection('url')
//Creating proxy
this.proxy = connection.createHubProxy('SignalRServerHub');
this.proxy.on('displayStatus', function (a) {
SignalRMessageTableService.getDataFromServer()
});
//Starting connection
connection.start()
//we are able to capture connection.id here
//under .done function but not sure how to use
请让我知道一步一步的解决方案或引用的文章,所以我可以很容易地理解它。
谁将消息发送给给定客户端?另一个客户端或服务器? – scheien
回到客户端的服务器消息 – freedom