Skip to content

Commit 3160d70

Browse files
committed
update readme and fix lint issue
1 parent 57d1ae9 commit 3160d70

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
[![LoopBack](<https://github.com/strongloop/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png>)](http://loopback.io/)
44

5+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sourcefuse_loopback4-notifications&metric=alert_status)](https://sonarcloud.io/dashboard?id=sourcefuse_loopback4-notifications)
6+
7+
![Dependencies Status](https://img.shields.io/david/sourcefuse/loopback4-notifications?style=flat-square)
8+
![Loopback Core Version](https://img.shields.io/npm/dependency-version/loopback4-notifications/@loopback/core?style=flat-square)
9+
10+
[![Latest version](https://img.shields.io/npm/v/loopback4-notifications.svg?style=flat-square)](https://www.npmjs.com/package/loopback4-notifications)
11+
[![License](https://img.shields.io/github/license/sourcefuse/loopback4-notifications.svg?color=blue&label=License&style=flat-square)](https://github.com/sourcefuse/loopback4-notifications/blob/master/LICENSE)
12+
[![Downloads](https://img.shields.io/npm/dw/loopback4-notifications.svg?label=Downloads&style=flat-square&color=blue)](https://www.npmjs.com/package/loopback4-notifications)
13+
[![Total Downloads](https://img.shields.io/npm/dt/loopback4-notifications.svg?label=Total%20Downloads&style=flat-square&color=blue)](https://www.npmjs.com/package/loopback4-notifications)
14+
515
This is a loopback-next extension for adding different notification mechanisms vis-à-vis, Push, SMS, Email, to any loopback 4 based REST API application or microservice.
616

717
It provides a generic provider-based framework to add your own implementation or implement any external service provider to achieve the same. There are 3 different providers available to be injected namely, PushProvider, SMSProvider and EmailProvider. It also provides support for 3 very popular external services for sending notifications.
@@ -208,7 +218,7 @@ If you wish to use any other service provider of your choice, you can create a p
208218
this.bind(NotificationBindings.SMSProvider).toProvider(MyOwnProvider);
209219
```
210220

211-
### Push Notifications
221+
### Push Notifications with Pubnub
212222

213223
This extension provides in-built support of Pubnub integration for sending realtime push notifications from the application. In order to use it, just bind the PushProvider as below in application.ts.
214224

src/providers/push/socketio/socketio.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class SocketIOProvider implements Provider<SocketNotification> {
3737
'Channel info is missing !',
3838
);
3939
}
40-
await this.socketService.emit(
40+
this.socketService.emit(
4141
message.path || this.socketConfig.defaultPath,
4242
JSON.stringify(message),
4343
);

0 commit comments

Comments
 (0)