Commit 6a117cdf by ruyun.zhang

消息推送全部

parent 6bd61862
...@@ -47,7 +47,7 @@ private void Consumer() ...@@ -47,7 +47,7 @@ private void Consumer()
item.UserId.ToString(), item.UserId.ToString(),
item.Method, item.Method,
JsonHelper.Serialize(item.Body)); JsonHelper.Serialize(item.Body));
_hubContext.Clients.Group(item.UserId.ToString()).SendAsync(item.Method, item.Body); _hubContext.Clients.All.SendAsync(item.Method, item.Body);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment