jetronome-client

Simple application status checker.

Usage no npm install needed!

<script type="module">
  import jetronomeClient from 'https://cdn.skypack.dev/jetronome-client';
</script>

README

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.