• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

133
Vistas
Using KSQLDB rest api client side

I'm trying to create a push query in my react native app and read the results.

What I have so far is...

const requestOptions = {
  method: 'POST',
  headers: { 'Content-Type': 'application/vnd.ksql.v1+json'},
  body: JSON.stringify({ ksql: `SELECT * FROM my_stream EMIT CHANGES;` }),
};
fetch('http://localhost:8088/query', requestOptions)
    .then(response => console.log(response.json()))

This successfully creates the push query but I'm not sure how to read the query results as they come in. Since the query continuously runs, I don't get any response. Is it possible to read from a push query that is created from a fetch request?

about 3 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda