Skip to content

Commit e877b6c

Browse files
committed
enhancement: allow sending multiple userIDs in one SSE event
1 parent 9dea9f0 commit e877b6c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Enhancement: allow sending multiple user ids in one sse event
2+
3+
Sending multiple user ids in one sse event is now possible which reduces the number of sent events.
4+
5+
https://github.com/cs3org/reva/pull/4501

pkg/events/sse.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"encoding/json"
55
)
66

7-
// SendSEE instructs the sse service to send a notification to a user
7+
// SendSSE instructs the sse service to send one or multiple notifications
88
type SendSSE struct {
9-
UserID string
9+
UserIDs []string
1010
Type string
1111
Message []byte
1212
}

0 commit comments

Comments
 (0)