chore: rebase broadcast notifications
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -118,7 +118,7 @@ to work:
|
||||
eventBroker.publish({
|
||||
topic: 'signals',
|
||||
eventPayload: {
|
||||
recipients: { type: 'user', entityRefs: ['user:default/user1'] },
|
||||
recipients: { type: 'user', entityRef: 'user:default/user1' },
|
||||
message: {
|
||||
message: 'hello world',
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ export type SignalPayload<TMessage extends JsonObject = JsonObject> = {
|
||||
recipients:
|
||||
| {
|
||||
type: 'user';
|
||||
entityRefs: string | string[];
|
||||
entityRef: string | string[];
|
||||
}
|
||||
| {
|
||||
type: 'broadcast';
|
||||
|
||||
@@ -26,7 +26,7 @@ export type SignalsServiceOptions = {
|
||||
/** @public */
|
||||
export type SignalPayload<TMessage extends JsonObject = JsonObject> = {
|
||||
recipients:
|
||||
| { type: 'user'; entityRefs: string | string[] }
|
||||
| { type: 'user'; entityRef: string | string[] }
|
||||
| { type: 'broadcast' };
|
||||
channel: string;
|
||||
message: TMessage;
|
||||
|
||||
Reference in New Issue
Block a user