@xyzblocks/web-notifications-client
v1.0.4
Published
Web Notifications Client
Downloads
2
Readme
@xyzblocks/web-notifications-client
Web Notifications Client
Installation
npm install @xyzblocks/web-notifications-client --save
API
WebNotificationsBaseClient
Methods
findSubscription(): Promise<ISubscription>
initialize(): Promise<void>
subscribe(channel: string): Promise<void>
unsubscribe(channel: string): Promise<void>
WebNotificationsClientFactory
Methods
static build(webNotificationServerURL: string): WebNotificationsBaseClient
WebNotificationsFallbackClient extends WebNotificationsBaseClient
Methods
findSubscription(): Promise<ISubscription>
initialize(): Promise<void>
subscribe(channel: string): Promise<void>
unsubscribe(channel: string): Promise<void>
WebNotificationsServiceWorkerClient extends WebNotificationsBaseClient
Methods
findSubscription(): Promise<ISubscription>
initialize(): Promise<void>
subscribe(channel: string): Promise<void>
unsubscribe(channel: string): Promise<void>