@nextcloud/notify_push
v1.3.1
Published
<!-- - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors - SPDX-License-Identifier: AGPL-3.0-or-later --> # @nextcloud/notify_push
Keywords
Readme
@nextcloud/notify_push
A javascript client for notify_push events for Nextcloud apps.
Installation
npm i @nextcloud/notify_pushUsage
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',
},
})