SignalR - Leave All Groups

后端 未结 2 543
我在风中等你
我在风中等你 2021-01-19 09:45

Using a SignalR hub clients can be added or removed from a group. A client can belong to multiple groups. Is it possible to remove a client from every group it currently bel

2条回答
  •  醉梦人生
    2021-01-19 10:08

    As of v0.5.2, there is no way to leave all groups because the server doesn't keep track of the groups a client belongs to. You need to do this yourself and remove the client from each group one-by-one.

    There's a request for something similar in the backlog however, so maybe this will be implemented in a future release: https://github.com/SignalR/SignalR/issues/66

提交回复
热议问题