Skip to content

oratek-ch/meteor-browser-notifications

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Browser Notifications

A package to send browser notifications to Meteor clients from the server.

Installation

$ meteor add mpaddock:browser-notifications

API

On the server, BrowserNotifications.sendNotification takes an object of options:

BrowserNotifications.sendNotification({
  userId: a12345678,
  title: "Notification title",
  body: "Notification body"
});

Notifications are sent to the client upon publication. After 60 seconds, they are removed from the database so users aren't flooded with notifications upon return to the page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 65.9%
  • JavaScript 34.1%