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

171
Views
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
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!