Skip to content

js-bao-wss-client


js-bao-wss-client / NotificationEvent

Interface: NotificationEvent ​

Real-time mirror of a durable in-app notification.

Emitted over the notification event channel (client.on("notification", ...)) when the signed-in user receives an in-app notification while connected. The durable inbox row is the source of truth — fetch it (and older rows) via client.notifications.list().

Properties ​

body ​

body: string


createdAt ​

createdAt: string


optional deepLink?: string


iconUrl? ​

optional iconUrl?: string


notificationId ​

notificationId: string


sourceRef? ​

optional sourceRef?: string


title ​

title: string


type ​

type: "notification"

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30