Commit b89aa1e3696679ca60eecc9b10ce9541879ba11e

Authored by Adhidarma Hadiwinoto
1 parent 09b0fc0bba
Exists in master

heartbeat json post

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

... ... @@ -10,12 +10,13 @@ function sendHeartbeat() {
10 10 if (!config || !config.core_url) { return; }
11 11  
12 12 const requestOptions = {
13   - url: config.core_url + '/heartbeats',
14   - form: {
  13 + uri: config.core_url + '/heartbeats',
  14 + method: 'POST',
  15 + json: {
15 16 name: config.handler_name,
16 17 module_type: 'gateway',
17   - config: JSON.stringify(config),
18   - matrix: JSON.stringify(matrix)
  18 + config: config,
  19 + matrix: matrix
19 20 }
20 21 }
21 22