Commit 5999157c3ef8230d067b55c5e31935c9c42c0b99

Authored by Adhidarma Hadiwinoto
1 parent 11729a673a
Exists in master

center using heartbeat

Showing 1 changed file with 5 additions and 4 deletions Side-by-side Diff

center/messaging/trx-center.js
... ... @@ -4,21 +4,22 @@
4 4 * Trx Handler untuk center messaging
5 5 */
6 6  
7   -const path = require('path');
  7 +const module_name = require('path').basename(__filename);
  8 +
8 9 const request = require('request');
9 10 const strftime = require('strftime');
10 11 const config = require('../../config');
11 12 const logger = require('../../logger');
12 13 const httpResponseServer = require('../http-response-server');
13 14 const controlPanel = require('../../control-panel');
14   -
15   -const module_name = path.basename(__filename);
  15 +const heartbeat = require('../../heartbeat');
16 16  
17 17 let transport;
18 18  
  19 +heartbeat.setModuleType('center')
  20 +
19 21 function onOnline(params) {
20 22 logger.info('CENTER is ONLINE, ready to communicate');
21   -
22 23 }
23 24  
24 25 function onIncomingMessage(paramsFromTransport, cb) {