https://github.com/nextcloud-libraries/notify_push-client
A javascript client for notify_push events
https://github.com/nextcloud-libraries/notify_push-client
Last synced: 4 months ago
JSON representation
A javascript client for notify_push events
- Host: GitHub
- URL: https://github.com/nextcloud-libraries/notify_push-client
- Owner: nextcloud-libraries
- Created: 2021-01-15T17:08:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T01:55:32.000Z (9 months ago)
- Last Synced: 2025-03-21T11:52:35.625Z (4 months ago)
- Language: TypeScript
- Size: 597 KB
- Stars: 2
- Watchers: 7
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSES/AGPL-3.0-or-later.txt
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# @nextcloud/notify_push
[](https://api.reuse.software/info/github.com/nextcloud-libraries/notify_push-client)
[](https://www.npmjs.com/package/@nextcloud/notify_push)A javascript client for notify_push events for Nextcloud apps.
## Installation
```sh
npm i @nextcloud/notify_push
```## Usage
```js
import { listen } from '@nextcloud/notify_push'// Using pre_auth request for web apps
listen('notify_file', () => {
console.log('A File has been changed')
})// Using credentials for clients
listen('notify_file', () => {
console.log('A File has been changed')
}, {
credentials: {
username: 'alice',
password: 'app-password',
},
})
```