chore: handle notifications from websockets (#2472)

This commit is contained in:
Karol Sójko
2023-08-31 15:32:05 +02:00
committed by GitHub
parent f35c34567e
commit cc6d300dc7
16 changed files with 76 additions and 33 deletions

View File

@@ -0,0 +1,7 @@
import { Either } from '@standardnotes/common'
import { UserRolesChangedEventPayload, NotificationAddedForUserEventPayload } from '@standardnotes/domain-events'
export interface WebSocketsEventData {
type: string
payload: Either<UserRolesChangedEventPayload, NotificationAddedForUserEventPayload>
}