y({
          cloudEventsVersion: "0.1",
          eventID: randomString(),
          eventType: "greeting",
          eventTime: new Date().toISOString(),
          source: "sse-demo-ui",
          contentType: "text/plain",
          data: {
            name,
            greeting
          }
        })
      })
        .then(response => response.json())
        .then(json => {
          console.log("CloudEvent sent:", json)
          return json
        })
        .catch(err => {
          console.log("Fa