Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
Proxy Angular-CLI al backend para WebSocket

Funciona perfectamente para Http, pero no para WebSocket. No encontré la documentación sobre esto. ¿Cómo puedo hacer proxy para WS?

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

proxy.conf.json:

 { "/": { "target": "http://localhost:8080", "secure": false } }
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Angular cli usa http-proxy-middleware para proxy debajo del capó. echa un vistazo a la documentación: https://github.com/chimurai/http-proxy-middleware

hay una opción booleana websocket ws que puede usar como se describe en esta sección: https://github.com/chimurai/http-proxy-middleware#http-proxy-options

para que pueda cambiar su configuración a:

 { "/": { "target": "http://localhost:8080", "secure": false "ws":true } }
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!