Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

664
Visualizações
Send data from server to client. NodeJS, Express

I am trying to send data from my express server to the client side.

I have used app.post and app.get, the problem i'm having is that with either of those, the request must come from the client side. I need to send to push the data from the server side once a script has run has finished.

What i am doing is:

  • Client inputs data on client side
  • Data is send to the server using app.post api
  • Server runs script
  • Server sends data back to client side
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

For server to client communications, look into client-side libraries such as axios or ajax.

If you are suggesting something that for example: user inputs data to form, server responds with a new page, you may be seeking a template engine. In that case, look into the Express Docs for a template engine.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda