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

124
Vistas
Angular-CLI proxy to backend for WebSocket

It's perfectly working for Http, but not for WebSocket. I did not find the documentation about this. How can I do proxy for WS?

ng serve --proxy-config proxy.conf.json

proxy.conf.json:

{
  "/": {
    "target": "http://localhost:8080",
    "secure": false
  }
}
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Angular cli uses http-proxy-middleware for proxy under the hood. take a look at the documentation: https://github.com/chimurai/http-proxy-middleware

there is a websocket ws boolean option you can use as described in this section: https://github.com/chimurai/http-proxy-middleware#http-proxy-options

so you can change your config to:

{
  "/": {
    "target": "http://localhost:8080",
    "secure": false
    "ws":true
  }
}
about 4 years ago · Santiago Trujillo Denunciar
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