You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

push-notifications

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

push-notifications

Push notifications for socket.io

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
30
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Push Notifications

Push Notification library written on top of socket.io

Send push notifications to clients in node.js.

Installation and Setup

  • npm install push-notifications

###SERVER

  • var pushNotifications = require("push-notifications")
  • pushNotifications.push(socket, options)
    • title : Title of the Notification
    • body : Body of the notification
    • icon : Link to the image of the icon

##CLIENT

  • include notificationLogger.js - <script src="js/pushNotifications.js"></script> - <script src="https://raw.githubusercontent.com/hkirat/push\-notifications/master/pushNotifications.js"></script>

Browser Support

Works best on latest versions of Google Chrome, Firefox and Safari.

Keywords

push-notifications

FAQs

Package last updated on 26 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts