Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

jetronome-client

0.1.4 • Public • Published

jetronome-client

npm version

Jetronome Client is the simplest application status checker.

Features

  • Creating periodic signal

Install

$ npm i --save jetronome-client

Usage

Starting at initialize

require('./jetronome-client').init({
    name: 'Dummy App', // Application Name (required)
    description: 'This is a test application.', // Description (required)
    server: 'http://localhost', // Jetronome Server (required)
    port: 7828, // Jetronome Server Port (optional) (default: 7828)
    interval: 3000, // Signal Interval (optional) (default: 3000)
    testApi: 'http://localhost/api/test', // App Test API (optional)
    autoStart: true,
});

Starting after initialize

const jetronome = require('./jetronome-client');
jetronome.init({
    name: 'Dummy App', // Application Name (required)
    description: 'This is a test application.', // Description (required)
    server: 'http://localhost', // Jetronome Server (required)
    port: 7828, // Jetronome Server Port (optional) (default: 7828)
    interval: 3000, // Signal Interval (optional) (default: 3000)
    testApi: 'http://localhost/api/test', // App Test API (optional)
});
 
setTimeout(() => {
    jetronome.start();
}, 5000);

Server App

This app works in pairs with Jetronome Server.

Keywords

none

install

npm i jetronome-client

Downloadsweekly downloads

8

version

0.1.4

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability