Skip to content

nextcloud-libraries/notify_push-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@nextcloud/notify_push

npm

A javascript client for notify_push events for Nextcloud apps.

Installation

npm i @nextcloud/notify_push

Usage

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',
  },
})

About

A javascript client for notify_push events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published