Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aerogear-sender-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aerogear-sender-client

Sender api for the AeroGear Unified Push server

  • 0.5.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

NOTE: THE NAME OF THIS PACKAGE HAS CHANGED, THE NEW PACKAGE IS LOCATED AT https://www.npmjs.org/package/unifiedpush-node-sender

aerogear-sender-client Build Status

Node Sender API for the AeroGear Unified Push server

Getting Started

Pre Reqs:

  • node.js
  • npm
  • git

Building

clone and install:

$ git@github.com:aerogear/aerogear-unifiedpush-nodejs-client.git

$ cd aerogear-unifiedpush-nodejs-client

$ npm install

Running Tests

$ npm test

Add to a Project

In your project do

npm install path/to/aerogear-unified-push-node-client

or

install from npm

npm install aerogear-sender-client

Examples

Require the aerogear-sender-client library

var agSender = require( "aerogear-sender-client" ).AeroGear,
    url = "http://localhost:8080/ag-push";

Send a Message

You can use either listen for the success and error events

agSender.Sender( url ).send( message, settings ).on( "success", function( response ) {
    console.log( "success called", response );
});

Or you can use a callback

agSender.Sender( url ).send( message, settings, function( err, response ) {
    if( !err ) {
        console.log( "success called", response );
        return;
    }
});

FAQs

Package last updated on 06 Aug 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc