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

clock-batch

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

clock-batch

clock-batch ======== Version 0.1.0

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

clock-batch

Version 0.1.0

A custom batch timer to send push notifications to iPhone and Android

Installation

$ npm install clock-batch

API

Batch can also be included on any project and used programmatically.

add(delay, callback, callbackContext, options, type)

  • delay - The number of milliseconds or a timestamp
  • callback - The callback that will be called when the timer event occurs.
  • callbackContext - The context in which the callback will be called.
  • options - The values to be sent to your callback function when it is called.
  • type - The type of delay is used a number or a date

remove(event)

  • event - The event to remove from the queue.

Use:

// Load the module
var batch = require('clock-batch');

// Set the options
var options = {"taskName": "Test", "date": "06-01-2017", "time": "11:13"};

// For adding a event
var event = batch.add(4000, sendPush, options, "number");

// For removing a event
batch.remove(event);

License

Peter Donders - Drukkerij Teeuwen

FAQs

Package last updated on 13 Jan 2017

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