0

I have an issue where I need to combine the functionality of 2 nodejs apps. But one requires I use a pre version 1 of socket.io. The other needs a version greater than 1.

So I was wondering if it might be possible to run 2 separate nodejs servers on the same machine AND target the same port (same browser)

Can anyone suggest a way to do this to a nodejs novice?

Bachalo
  • 6,965
  • 27
  • 95
  • 189
  • When you run the Socket.io server you specify a port. Just specify different ports for your different apps. – laggingreflex Jan 09 '15 at 17:12
  • Actually my application runs in a single browser. I am trying to combine the functionality from 2 different servers – Bachalo Jan 09 '15 at 17:28
  • You cannot have two different nodejs servers on the same machine that are both trying to listen for the same port. That simply won't work. One server or the other will get the port listen first and the other will be denied. You can use different ports for the two apps. – jfriend00 Jan 09 '15 at 22:09

0 Answers0