              "name": "john"
                }
              ]
            }
          ]
        })
      })
        .then(json => {
          console.log("Subscription created:", json)
          return json
        })
        .catch(err => {
          console.log("Failed to create subscription:", err)
        })
    }

    const source = new WebSocket(`${wsUrl}/connection/ws`)

    source.onopen = (e) => console.log("open", e)
    source.onmessage = (e) => {
      console.log("message", e)
      const clou