Home > borogove > Push > receive
Push.receive() method
Receive a new push notification from some external system
Signature:
static receive(data: string, persistence: borogove.Persistence): borogove.Notification | null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| data | string | the raw data from the push |
| persistence | borogove.Persistence | the persistence layer to write into |
Returns:
borogove.Notification | null
a Notification representing the push data