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

172
Vistas
How to setup socket for client and server that run on their own port?

currently I have a small web app im making for a class, and the client and server are both running off their own ports, I know for a socket using socket.io, how to implement them for a one port webapp, but since im using 2 ports, im not entirely sure how to go about implementing them, i know for a one port system you would only have to set origin or have something similar to this, but if theres 2 ports it will be answering and sending between, how do I go about setting it up?

const io = require("socket.io") (8900, {
    cors: {
        origin: "http://localhost:5000",
    }
})
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