Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

130
Vistas
Using Javascript to tell Express server to serve a new webpage to multiple clients

In my web-based game, one player performs an action that forces all players to then be taken to a new page. I'm simply trying to send this request from the client Javascript to the Express server, which in turn serves the new webpage to all players.

How do I: a) send the request to the server in the first place? Use a fetch function to an app.get on the server? I suppose I can use an action on a button, but I'd rather have a function that triggers the server to get the new page. b) have the server code force all players to the new URL regardless of where they are in the game?

I'm using socket.io to communicate otherwise between the clients and the server.

Any help would be appreciated. Thanks in advance!

about 4 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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda