You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DocFx.AspNetCore.ServerSentEvents/articles/groups.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@ A group is a collection of clients associated with a name. Groups are the recomm
4
4
5
5
## Adding to a group
6
6
7
-
Client can be added to a group via the `IServerSentEventsService.AddToGroupAsync` method (the method will return an information if a client has been added to an existing or a new group).
7
+
Client can be added to a group via the `IServerSentEventsService.AddToGroup` method (the method will return an information if a client has been added to an existing or a new group).
Group membership isn't preserved when a client reconnects. The client needs to rejoin the group when connection is re-established. One of possible ways to handle this is putting group assigment logic into `ServerSentEventsServiceOptions.OnClientConnected` callback.
Assert.False((recordedExceptionasAggregateException)?.InnerExceptions.Any(ex =>(exasInvalidOperationException)?.Message.Contains("Collection was modified")??false)??false);
0 commit comments