text: const express = require('express')
  const http = require('http')
  const app = express()
  app.use(express.static('public'))
  
  app.listen(3000, () => {
    console.log('Express listening on port 3000')
  })
  
  let interval // eslint-disable-line
  let count = 0
  
  interval = setInterval(() => {
    count++
  
    let now = new Date()
    let timestamp = now.toISOString()
    let message = JSON.stringify({
      timestampUTC: timestamp,
      messageCount: count,
      text: 'Hello! I am an amazing message!',
      keyOne: true,
      keyTwo: 'value'
    })
  
    let endpointOptions = {
      protocol: 'http:',
      host: 'localhost',
      path: '/',
      port: '3001',
      method: 'POST',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
        'Content-Length': Buffer.byteLength(message)
      }
    }
  
    let req = http.request(endpointOptions, (res) => {
      res.setEncoding('utf8')
      res.on('data', (chunk) => {
        console.log('body: ' + chunk)
      })
    })
    req.write(message)
    req.end()
    console.log('message sent!')
  }, 2000)
  