iled to send CloudEvent:", err)
        })
    }

    function createSubscription(connectionToken) {
      const eventType = "greeting"
      return fetch(`${baseUrl}/connection/ws/${connectionToken}/subscriptions`, {
        method: "PUT",
        mode: "cors",
        headers: {
          "Content-Type": "application/json; charset=utf-8"
        },
        body: JSON.stringify({
          "subscriptions": [
            {
              "eventType": eventType,
              "oneOf": [
                {
    